@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 |
|---|---|
com.gs.collections.api.collection.MutableCollection<T> |
asSynchronized() |
com.gs.collections.api.collection.MutableCollection<T> |
asUnmodifiable() |
<V> com.gs.collections.api.collection.MutableCollection<V> |
collect(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
com.gs.collections.api.collection.primitive.MutableBooleanCollection |
collectBoolean(com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction) |
com.gs.collections.api.collection.primitive.MutableByteCollection |
collectByte(com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction) |
com.gs.collections.api.collection.primitive.MutableCharCollection |
collectChar(com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction) |
com.gs.collections.api.collection.primitive.MutableDoubleCollection |
collectDouble(com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction) |
com.gs.collections.api.collection.primitive.MutableFloatCollection |
collectFloat(com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction) |
<V> com.gs.collections.api.collection.MutableCollection<V> |
collectIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
com.gs.collections.api.collection.primitive.MutableIntCollection |
collectInt(com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction) |
com.gs.collections.api.collection.primitive.MutableLongCollection |
collectLong(com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction) |
com.gs.collections.api.collection.primitive.MutableShortCollection |
collectShort(com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction) |
<P,V> com.gs.collections.api.collection.MutableCollection<V> |
collectWith(com.gs.collections.api.block.function.Function2<? super T,? super P,? extends V> function,
P parameter) |
<V> com.gs.collections.api.collection.MutableCollection<V> |
flatCollect(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
<V> com.gs.collections.api.multimap.MutableMultimap<V,T> |
groupBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
<V> com.gs.collections.api.multimap.MutableMultimap<V,T> |
groupByEach(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
com.gs.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.
|
com.gs.collections.api.partition.PartitionMutableCollection<T> |
partition(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> com.gs.collections.api.partition.PartitionMutableCollection<T> |
partitionWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
com.gs.collections.api.collection.MutableCollection<T> |
reject(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> com.gs.collections.api.collection.MutableCollection<T> |
rejectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
com.gs.collections.api.collection.MutableCollection<T> |
select(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<S> com.gs.collections.api.collection.MutableCollection<S> |
selectInstancesOf(Class<S> clazz) |
<P> com.gs.collections.api.collection.MutableCollection<T> |
selectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
com.gs.collections.api.collection.MutableCollection<T> |
tap(com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
com.gs.collections.api.collection.ImmutableCollection<T> |
toImmutable() |
com.gs.collections.api.collection.MutableCollection<T> |
with(T element) |
com.gs.collections.api.collection.MutableCollection<T> |
withAll(Iterable<? extends T> elements) |
com.gs.collections.api.collection.MutableCollection<T> |
without(T element) |
com.gs.collections.api.collection.MutableCollection<T> |
withoutAll(Iterable<? extends T> elements) |
<S> com.gs.collections.api.collection.MutableCollection<com.gs.collections.api.tuple.Pair<T,S>> |
zip(Iterable<S> that) |
com.gs.collections.api.collection.MutableCollection<com.gs.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, zipWithIndexgroupByUniqueKeycontains, 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 com.gs.collections.api.collection.MutableCollection<T> with(T element)
with in interface com.gs.collections.api.collection.MutableCollection<T>public com.gs.collections.api.collection.MutableCollection<T> without(T element)
without in interface com.gs.collections.api.collection.MutableCollection<T>public com.gs.collections.api.collection.MutableCollection<T> withAll(Iterable<? extends T> elements)
withAll in interface com.gs.collections.api.collection.MutableCollection<T>public com.gs.collections.api.collection.MutableCollection<T> withoutAll(Iterable<? extends T> elements)
withoutAll in interface com.gs.collections.api.collection.MutableCollection<T>public com.gs.collections.api.collection.MutableCollection<T> asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.MutableCollection<T>public com.gs.collections.api.collection.MutableCollection<T> asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.MutableCollection<T>public com.gs.collections.api.collection.ImmutableCollection<T> toImmutable()
toImmutable in interface com.gs.collections.api.collection.MutableCollection<T>public com.gs.collections.api.collection.MutableCollection<T> newEmpty()
newEmpty in interface com.gs.collections.api.collection.MutableCollection<T>public com.gs.collections.api.collection.MutableCollection<T> tap(com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
public com.gs.collections.api.collection.MutableCollection<T> select(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public <P> com.gs.collections.api.collection.MutableCollection<T> selectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
public com.gs.collections.api.collection.MutableCollection<T> reject(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public <P> com.gs.collections.api.collection.MutableCollection<T> rejectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
public com.gs.collections.api.partition.PartitionMutableCollection<T> partition(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public <P> com.gs.collections.api.partition.PartitionMutableCollection<T> partitionWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
public com.gs.collections.api.collection.primitive.MutableBooleanCollection collectBoolean(com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction)
public com.gs.collections.api.collection.primitive.MutableByteCollection collectByte(com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction)
public com.gs.collections.api.collection.primitive.MutableCharCollection collectChar(com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction)
public com.gs.collections.api.collection.primitive.MutableDoubleCollection collectDouble(com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction)
public com.gs.collections.api.collection.primitive.MutableFloatCollection collectFloat(com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction)
public com.gs.collections.api.collection.primitive.MutableIntCollection collectInt(com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction)
public com.gs.collections.api.collection.primitive.MutableLongCollection collectLong(com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction)
public com.gs.collections.api.collection.primitive.MutableShortCollection collectShort(com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction)
public com.gs.collections.api.collection.MutableCollection<com.gs.collections.api.tuple.Pair<T,Integer>> zipWithIndex()
public <S> com.gs.collections.api.collection.MutableCollection<S> selectInstancesOf(Class<S> clazz)
public <V> com.gs.collections.api.collection.MutableCollection<V> collect(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
public <P,V> com.gs.collections.api.collection.MutableCollection<V> collectWith(com.gs.collections.api.block.function.Function2<? super T,? super P,? extends V> function, P parameter)
public <V> com.gs.collections.api.collection.MutableCollection<V> collectIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate, com.gs.collections.api.block.function.Function<? super T,? extends V> function)
public <V> com.gs.collections.api.collection.MutableCollection<V> flatCollect(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
public <V> com.gs.collections.api.multimap.MutableMultimap<V,T> groupBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
public <V> com.gs.collections.api.multimap.MutableMultimap<V,T> groupByEach(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
Copyright © 2004–2016. All rights reserved.