@ThreadSafe public class SynchronizedMutableCollection<T> extends AbstractSynchronizedMutableCollection<T> implements Serializable
MutableCollection. It is imperative that the user manually synchronize on the collection when iterating over it using the
standard JDK iterator or JDK 5 for loop, as per Collections.synchronizedCollection(Collection).MutableCollection.asSynchronized(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
org.eclipse.collections.api.collection.MutableCollection<T> |
asSynchronized() |
org.eclipse.collections.api.collection.MutableCollection<T> |
asUnmodifiable() |
<V> org.eclipse.collections.api.collection.MutableCollection<V> |
collect(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
org.eclipse.collections.api.collection.primitive.MutableBooleanCollection |
collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction) |
org.eclipse.collections.api.collection.primitive.MutableByteCollection |
collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction) |
org.eclipse.collections.api.collection.primitive.MutableCharCollection |
collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction<? super T> charFunction) |
org.eclipse.collections.api.collection.primitive.MutableDoubleCollection |
collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction) |
org.eclipse.collections.api.collection.primitive.MutableFloatCollection |
collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction) |
<V> org.eclipse.collections.api.collection.MutableCollection<V> |
collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
org.eclipse.collections.api.collection.primitive.MutableIntCollection |
collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> intFunction) |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> longFunction) |
org.eclipse.collections.api.collection.primitive.MutableShortCollection |
collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction) |
<P,V> org.eclipse.collections.api.collection.MutableCollection<V> |
collectWith(org.eclipse.collections.api.block.function.Function2<? super T,? super P,? extends V> function,
P parameter) |
<V> org.eclipse.collections.api.collection.MutableCollection<V> |
flatCollect(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
<V> org.eclipse.collections.api.multimap.MutableMultimap<V,T> |
groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
<V> org.eclipse.collections.api.multimap.MutableMultimap<V,T> |
groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
org.eclipse.collections.api.collection.MutableCollection<T> |
newEmpty() |
static <E,C extends Collection<E>> |
of(C collection)
This method will take a MutableCollection and wrap it directly in a SynchronizedMutableCollection.
|
static <E,C extends Collection<E>> |
of(C collection,
Object lock)
This method will take a MutableCollection and wrap it directly in a SynchronizedMutableCollection.
|
org.eclipse.collections.api.partition.PartitionMutableCollection<T> |
partition(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> org.eclipse.collections.api.partition.PartitionMutableCollection<T> |
partitionWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
org.eclipse.collections.api.collection.MutableCollection<T> |
reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> org.eclipse.collections.api.collection.MutableCollection<T> |
rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
org.eclipse.collections.api.collection.MutableCollection<T> |
select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<S> org.eclipse.collections.api.collection.MutableCollection<S> |
selectInstancesOf(Class<S> clazz) |
<P> org.eclipse.collections.api.collection.MutableCollection<T> |
selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
org.eclipse.collections.api.collection.MutableCollection<T> |
tap(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
org.eclipse.collections.api.collection.ImmutableCollection<T> |
toImmutable() |
org.eclipse.collections.api.collection.MutableCollection<T> |
with(T element) |
org.eclipse.collections.api.collection.MutableCollection<T> |
withAll(Iterable<? extends T> elements) |
org.eclipse.collections.api.collection.MutableCollection<T> |
without(T element) |
org.eclipse.collections.api.collection.MutableCollection<T> |
withoutAll(Iterable<? extends T> elements) |
<S> org.eclipse.collections.api.collection.MutableCollection<org.eclipse.collections.api.tuple.Pair<T,S>> |
zip(Iterable<S> that) |
org.eclipse.collections.api.collection.MutableCollection<org.eclipse.collections.api.tuple.Pair<T,Integer>> |
zipWithIndex() |
add, addAll, addAllIterable, aggregateBy, aggregateInPlaceBy, clear, injectIntoWith, remove, removeAll, removeAllIterable, removeIf, removeIfWith, retainAll, retainAllIterable, selectAndRejectWithallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, each, equals, flatCollect, forEach, forEachWith, forEachWithIndex, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, groupByUniqueKey, hashCode, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, iterator, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgroupByUniqueKeycontains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeIf, size, spliterator, stream, toArray, toArrayallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, each, flatCollect, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexpublic static <E,C extends Collection<E>> SynchronizedMutableCollection<E> of(C collection)
public static <E,C extends Collection<E>> SynchronizedMutableCollection<E> of(C collection, Object lock)
public org.eclipse.collections.api.collection.MutableCollection<T> with(T element)
with in interface org.eclipse.collections.api.collection.MutableCollection<T>public org.eclipse.collections.api.collection.MutableCollection<T> without(T element)
without in interface org.eclipse.collections.api.collection.MutableCollection<T>public org.eclipse.collections.api.collection.MutableCollection<T> withAll(Iterable<? extends T> elements)
withAll in interface org.eclipse.collections.api.collection.MutableCollection<T>public org.eclipse.collections.api.collection.MutableCollection<T> withoutAll(Iterable<? extends T> elements)
withoutAll in interface org.eclipse.collections.api.collection.MutableCollection<T>public org.eclipse.collections.api.collection.MutableCollection<T> asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.MutableCollection<T>public org.eclipse.collections.api.collection.MutableCollection<T> asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.MutableCollection<T>public org.eclipse.collections.api.collection.ImmutableCollection<T> toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.MutableCollection<T>public org.eclipse.collections.api.collection.MutableCollection<T> newEmpty()
newEmpty in interface org.eclipse.collections.api.collection.MutableCollection<T>public org.eclipse.collections.api.collection.MutableCollection<T> tap(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
public org.eclipse.collections.api.collection.MutableCollection<T> select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
public <P> org.eclipse.collections.api.collection.MutableCollection<T> selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
public org.eclipse.collections.api.collection.MutableCollection<T> reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
public <P> org.eclipse.collections.api.collection.MutableCollection<T> rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
public org.eclipse.collections.api.partition.PartitionMutableCollection<T> partition(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
public <P> org.eclipse.collections.api.partition.PartitionMutableCollection<T> partitionWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
public org.eclipse.collections.api.collection.primitive.MutableBooleanCollection collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction)
public org.eclipse.collections.api.collection.primitive.MutableByteCollection collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction)
public org.eclipse.collections.api.collection.primitive.MutableCharCollection collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction<? super T> charFunction)
public org.eclipse.collections.api.collection.primitive.MutableDoubleCollection collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction)
public org.eclipse.collections.api.collection.primitive.MutableFloatCollection collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction)
public org.eclipse.collections.api.collection.primitive.MutableIntCollection collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> intFunction)
public org.eclipse.collections.api.collection.primitive.MutableLongCollection collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> longFunction)
public org.eclipse.collections.api.collection.primitive.MutableShortCollection collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction)
public org.eclipse.collections.api.collection.MutableCollection<org.eclipse.collections.api.tuple.Pair<T,Integer>> zipWithIndex()
public <S> org.eclipse.collections.api.collection.MutableCollection<S> selectInstancesOf(Class<S> clazz)
public <V> org.eclipse.collections.api.collection.MutableCollection<V> collect(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
public <P,V> org.eclipse.collections.api.collection.MutableCollection<V> collectWith(org.eclipse.collections.api.block.function.Function2<? super T,? super P,? extends V> function, P parameter)
public <V> org.eclipse.collections.api.collection.MutableCollection<V> collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
public <V> org.eclipse.collections.api.collection.MutableCollection<V> flatCollect(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
public <V> org.eclipse.collections.api.multimap.MutableMultimap<V,T> groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
public <V> org.eclipse.collections.api.multimap.MutableMultimap<V,T> groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
Copyright © 2004–2018. All rights reserved.