Class SynchronizedMutableList<T>
java.lang.Object
org.eclipse.collections.impl.collection.AbstractSynchronizedRichIterable<T>
org.eclipse.collections.impl.collection.mutable.AbstractSynchronizedMutableCollection<T>
org.eclipse.collections.impl.list.mutable.SynchronizedMutableList<T>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<T>,Collection<T>,List<T>,MutableCollection<T>,InternalIterable<T>,ListIterable<T>,MutableList<T>,OrderedIterable<T>,ReversibleIterable<T>,RichIterable<T>
public class SynchronizedMutableList<T>
extends AbstractSynchronizedMutableCollection<T>
implements MutableList<T>, Serializable
A synchronized view of a
MutableList. 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).- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddAll(int index, Collection<? extends T> collection) asParallel(ExecutorService executorService, int batchSize) intbinarySearch(T key) intbinarySearch(T key, Comparator<? super T> comparator) clone()<V> MutableList<V>collectBoolean(BooleanFunction<? super T> booleanFunction) collectByte(ByteFunction<? super T> byteFunction) collectChar(CharFunction<? super T> charFunction) collectDouble(DoubleFunction<? super T> doubleFunction) collectFloat(FloatFunction<? super T> floatFunction) <V> MutableList<V>collectInt(IntFunction<? super T> intFunction) collectLong(LongFunction<? super T> longFunction) collectShort(ShortFunction<? super T> shortFunction) <P,V> MutableList<V> collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter) <V> MutableList<V>collectWithIndex(ObjectIntToObjectFunction<? super T, ? extends V> function) <V,R extends Collection<V>>
RcollectWithIndex(ObjectIntToObjectFunction<? super T, ? extends V> function, R target) <S> booleancorresponds(OrderedIterable<S> other, Predicate2<? super T, ? super S> predicate) intdetectIndex(Predicate<? super T> predicate) intdetectLastIndex(Predicate<? super T> predicate) distinct()distinct(HashingStrategy<? super T> hashingStrategy) <V> MutableList<T>distinctBy(Function<? super T, ? extends V> function) drop(int count) <V> MutableList<V>flatCollect(Function<? super T, ? extends Iterable<V>> function) void<T2> voidforEachInBoth(ListIterable<T2> other, Procedure2<? super T, ? super T2> procedure) voidforEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure) get(int index) <V> MutableListMultimap<V,T> <V> MutableListMultimap<V,T> groupByEach(Function<? super T, ? extends Iterable<V>> function) intintlistIterator(int index) newEmpty()static <E,L extends List<E>>
SynchronizedMutableList<E>of(L list) This method will take a MutableList and wrap it directly in a SynchronizedMutableList.static <E,L extends List<E>>
SynchronizedMutableList<E>This method will take a MutableList and wrap it directly in a SynchronizedMutableList.partitionWhile(Predicate<? super T> predicate) <P> PartitionMutableList<T>partitionWith(Predicate2<? super T, ? super P> predicate, P parameter) <P> MutableList<T>rejectWith(Predicate2<? super T, ? super P> predicate, P parameter) rejectWithIndex(ObjectIntPredicate<? super T> predicate) <R extends Collection<T>>
RrejectWithIndex(ObjectIntPredicate<? super T> predicate, R target) remove(int index) voidreplaceAll(UnaryOperator<T> operator) voidreverseForEach(Procedure<? super T> procedure) voidreverseForEachWithIndex(ObjectIntProcedure<? super T> procedure) <S> MutableList<S>selectInstancesOf(Class<S> clazz) <P> MutableList<T>selectWith(Predicate2<? super T, ? super P> predicate, P parameter) selectWithIndex(ObjectIntPredicate<? super T> predicate) <R extends Collection<T>>
RselectWithIndex(ObjectIntPredicate<? super T> predicate, R target) shuffleThis(Random rnd) voidsort(Comparator<? super T> comparator) sortThis()sortThis(Comparator<? super T> comparator) <V extends Comparable<? super V>>
MutableList<T>sortThisBy(Function<? super T, ? extends V> function) sortThisByBoolean(BooleanFunction<? super T> function) sortThisByByte(ByteFunction<? super T> function) sortThisByChar(CharFunction<? super T> function) sortThisByDouble(DoubleFunction<? super T> function) sortThisByFloat(FloatFunction<? super T> function) sortThisByInt(IntFunction<? super T> function) sortThisByLong(LongFunction<? super T> function) sortThisByShort(ShortFunction<? super T> function) subList(int fromIndex, int toIndex) take(int count) toStack()<S> MutableList<Pair<T,S>> Methods inherited from class org.eclipse.collections.impl.collection.mutable.AbstractSynchronizedMutableCollection
add, addAll, addAllIterable, aggregateBy, aggregateInPlaceBy, clear, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, remove, removeAll, removeAllIterable, removeIf, removeIfWith, retainAll, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLongMethods inherited from class org.eclipse.collections.impl.collection.AbstractSynchronizedRichIterable
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, equals, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, forEachWith, forEachWithIndex, getFirst, getLast, getOnly, groupBy, groupByEach, groupByUniqueKey, hashCode, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, iterator, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduceBy, reject, rejectWith, select, selectWith, size, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableList, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toString, zip, zipWithIndexMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.eclipse.collections.api.InternalIterable
forEach, forEachWithMethods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliteratorMethods inherited from interface org.eclipse.collections.api.list.ListIterable
equals, hashCodeMethods inherited from interface org.eclipse.collections.api.collection.MutableCollection
addAllIterable, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, removeAllIterable, removeIf, removeIfWith, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLongMethods inherited from interface org.eclipse.collections.api.list.MutableList
flatCollectWith, getFirst, getLast, toArray, toArray, toImmutableList, with, withAll, without, withoutAllMethods inherited from interface org.eclipse.collections.api.ordered.OrderedIterable
forEachWithIndex, max, min, zip, zipWithIndexMethods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, maxBy, maxByOptional, maxOptional, maxOptional, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceBy, reduceBy, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString
-
Method Details
-
of
This method will take a MutableList and wrap it directly in a SynchronizedMutableList. It will take any other non-Eclipse-Collections collection and first adapt it will a ListAdapter, and then return a SynchronizedMutableList that wraps the adapter. -
of
This method will take a MutableList and wrap it directly in a SynchronizedMutableList. It will take any other non-Eclipse-Collections collection and first adapt it will a ListAdapter, and then return a SynchronizedMutableList that wraps the adapter. Additionally, a developer specifies which lock to use with the collection. -
newEmpty
- Specified by:
newEmptyin interfaceMutableCollection<T>- Specified by:
newEmptyin interfaceMutableList<T>
-
clone
- Specified by:
clonein interfaceMutableList<T>
-
addAll
-
set
-
add
-
remove
-
subList
- Specified by:
subListin interfaceList<T>- Specified by:
subListin interfaceListIterable<T>- Specified by:
subListin interfaceMutableList<T>
-
get
-
replaceAll
- Specified by:
replaceAllin interfaceList<T>- Since:
- 10.0 - Overridden for correctness
-
sort
-
getFirstOptional
- Specified by:
getFirstOptionalin interfaceOrderedIterable<T>
-
getLastOptional
- Specified by:
getLastOptionalin interfaceOrderedIterable<T>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>- Specified by:
lastIndexOfin interfaceListIterable<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>- Specified by:
listIteratorin interfaceListIterable<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>- Specified by:
listIteratorin interfaceListIterable<T>
-
asParallel
- Specified by:
asParallelin interfaceListIterable<T>
-
binarySearch
- Specified by:
binarySearchin interfaceListIterable<T>
-
binarySearch
- Specified by:
binarySearchin interfaceListIterable<T>
-
indexOf
- Specified by:
indexOfin interfaceList<T>- Specified by:
indexOfin interfaceMutableList<T>- Specified by:
indexOfin interfaceOrderedIterable<T>
-
distinct
- Specified by:
distinctin interfaceListIterable<T>- Specified by:
distinctin interfaceMutableList<T>- Specified by:
distinctin interfaceOrderedIterable<T>- Specified by:
distinctin interfaceReversibleIterable<T>
-
distinct
- Specified by:
distinctin interfaceListIterable<T>- Specified by:
distinctin interfaceMutableList<T>
-
distinctBy
- Specified by:
distinctByin interfaceListIterable<T>- Specified by:
distinctByin interfaceMutableList<T>- Since:
- 9.0.
-
corresponds
- Specified by:
correspondsin interfaceOrderedIterable<T>
-
forEachInBoth
- Specified by:
forEachInBothin interfaceListIterable<T>
-
forEach
- Specified by:
forEachin interfaceOrderedIterable<T>
-
takeWhile
- Specified by:
takeWhilein interfaceListIterable<T>- Specified by:
takeWhilein interfaceMutableList<T>- Specified by:
takeWhilein interfaceOrderedIterable<T>- Specified by:
takeWhilein interfaceReversibleIterable<T>
-
forEachWithIndex
public void forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure) - Specified by:
forEachWithIndexin interfaceOrderedIterable<T>
-
dropWhile
- Specified by:
dropWhilein interfaceListIterable<T>- Specified by:
dropWhilein interfaceMutableList<T>- Specified by:
dropWhilein interfaceOrderedIterable<T>- Specified by:
dropWhilein interfaceReversibleIterable<T>
-
partitionWhile
- Specified by:
partitionWhilein interfaceListIterable<T>- Specified by:
partitionWhilein interfaceMutableList<T>- Specified by:
partitionWhilein interfaceOrderedIterable<T>- Specified by:
partitionWhilein interfaceReversibleIterable<T>
-
detectIndex
- Specified by:
detectIndexin interfaceOrderedIterable<T>
-
detectLastIndex
- Specified by:
detectLastIndexin interfaceReversibleIterable<T>
-
take
- Specified by:
takein interfaceListIterable<T>- Specified by:
takein interfaceMutableList<T>- Specified by:
takein interfaceReversibleIterable<T>
-
drop
- Specified by:
dropin interfaceListIterable<T>- Specified by:
dropin interfaceMutableList<T>- Specified by:
dropin interfaceReversibleIterable<T>
-
reverseForEach
- Specified by:
reverseForEachin interfaceReversibleIterable<T>
-
reverseForEachWithIndex
- Specified by:
reverseForEachWithIndexin interfaceReversibleIterable<T>
-
sortThis
- Specified by:
sortThisin interfaceMutableList<T>
-
sortThis
- Specified by:
sortThisin interfaceMutableList<T>
-
sortThisBy
public <V extends Comparable<? super V>> MutableList<T> sortThisBy(Function<? super T, ? extends V> function) - Specified by:
sortThisByin interfaceMutableList<T>
-
sortThisByInt
- Specified by:
sortThisByIntin interfaceMutableList<T>
-
sortThisByBoolean
- Specified by:
sortThisByBooleanin interfaceMutableList<T>
-
sortThisByChar
- Specified by:
sortThisByCharin interfaceMutableList<T>
-
sortThisByByte
- Specified by:
sortThisByBytein interfaceMutableList<T>
-
sortThisByShort
- Specified by:
sortThisByShortin interfaceMutableList<T>
-
sortThisByFloat
- Specified by:
sortThisByFloatin interfaceMutableList<T>
-
sortThisByLong
- Specified by:
sortThisByLongin interfaceMutableList<T>
-
sortThisByDouble
- Specified by:
sortThisByDoublein interfaceMutableList<T>
-
reverseThis
- Specified by:
reverseThisin interfaceMutableList<T>
-
shuffleThis
- Specified by:
shuffleThisin interfaceMutableList<T>
-
shuffleThis
- Specified by:
shuffleThisin interfaceMutableList<T>
-
asReversed
- Specified by:
asReversedin interfaceReversibleIterable<T>
-
toReversed
- Specified by:
toReversedin interfaceListIterable<T>- Specified by:
toReversedin interfaceMutableList<T>- Specified by:
toReversedin interfaceReversibleIterable<T>
-
toStack
- Specified by:
toStackin interfaceOrderedIterable<T>
-
toImmutable
- Specified by:
toImmutablein interfaceListIterable<T>- Specified by:
toImmutablein interfaceMutableCollection<T>- Specified by:
toImmutablein interfaceMutableList<T>
-
tap
- Specified by:
tapin interfaceListIterable<T>- Specified by:
tapin interfaceMutableCollection<T>- Specified by:
tapin interfaceMutableList<T>- Specified by:
tapin interfaceOrderedIterable<T>- Specified by:
tapin interfaceReversibleIterable<T>- Specified by:
tapin interfaceRichIterable<T>- Overrides:
tapin classAbstractSynchronizedMutableCollection<T>
-
select
- Specified by:
selectin interfaceListIterable<T>- Specified by:
selectin interfaceMutableCollection<T>- Specified by:
selectin interfaceMutableList<T>- Specified by:
selectin interfaceOrderedIterable<T>- Specified by:
selectin interfaceReversibleIterable<T>- Specified by:
selectin interfaceRichIterable<T>- Overrides:
selectin classAbstractSynchronizedMutableCollection<T>
-
selectWith
- Specified by:
selectWithin interfaceListIterable<T>- Specified by:
selectWithin interfaceMutableCollection<T>- Specified by:
selectWithin interfaceMutableList<T>- Specified by:
selectWithin interfaceOrderedIterable<T>- Specified by:
selectWithin interfaceReversibleIterable<T>- Specified by:
selectWithin interfaceRichIterable<T>- Overrides:
selectWithin classAbstractSynchronizedMutableCollection<T>
-
reject
- Specified by:
rejectin interfaceListIterable<T>- Specified by:
rejectin interfaceMutableCollection<T>- Specified by:
rejectin interfaceMutableList<T>- Specified by:
rejectin interfaceOrderedIterable<T>- Specified by:
rejectin interfaceReversibleIterable<T>- Specified by:
rejectin interfaceRichIterable<T>- Overrides:
rejectin classAbstractSynchronizedMutableCollection<T>
-
rejectWith
- Specified by:
rejectWithin interfaceListIterable<T>- Specified by:
rejectWithin interfaceMutableCollection<T>- Specified by:
rejectWithin interfaceMutableList<T>- Specified by:
rejectWithin interfaceOrderedIterable<T>- Specified by:
rejectWithin interfaceReversibleIterable<T>- Specified by:
rejectWithin interfaceRichIterable<T>- Overrides:
rejectWithin classAbstractSynchronizedMutableCollection<T>
-
partition
- Specified by:
partitionin interfaceListIterable<T>- Specified by:
partitionin interfaceMutableCollection<T>- Specified by:
partitionin interfaceMutableList<T>- Specified by:
partitionin interfaceOrderedIterable<T>- Specified by:
partitionin interfaceReversibleIterable<T>- Specified by:
partitionin interfaceRichIterable<T>- Overrides:
partitionin classAbstractSynchronizedMutableCollection<T>
-
partitionWith
public <P> PartitionMutableList<T> partitionWith(Predicate2<? super T, ? super P> predicate, P parameter) - Specified by:
partitionWithin interfaceListIterable<T>- Specified by:
partitionWithin interfaceMutableCollection<T>- Specified by:
partitionWithin interfaceMutableList<T>- Specified by:
partitionWithin interfaceOrderedIterable<T>- Specified by:
partitionWithin interfaceReversibleIterable<T>- Specified by:
partitionWithin interfaceRichIterable<T>- Overrides:
partitionWithin classAbstractSynchronizedMutableCollection<T>
-
selectInstancesOf
- Specified by:
selectInstancesOfin interfaceListIterable<T>- Specified by:
selectInstancesOfin interfaceMutableCollection<T>- Specified by:
selectInstancesOfin interfaceMutableList<T>- Specified by:
selectInstancesOfin interfaceOrderedIterable<T>- Specified by:
selectInstancesOfin interfaceReversibleIterable<T>- Specified by:
selectInstancesOfin interfaceRichIterable<T>- Overrides:
selectInstancesOfin classAbstractSynchronizedMutableCollection<T>
-
collectBoolean
- Specified by:
collectBooleanin interfaceListIterable<T>- Specified by:
collectBooleanin interfaceMutableCollection<T>- Specified by:
collectBooleanin interfaceMutableList<T>- Specified by:
collectBooleanin interfaceOrderedIterable<T>- Specified by:
collectBooleanin interfaceReversibleIterable<T>- Specified by:
collectBooleanin interfaceRichIterable<T>- Overrides:
collectBooleanin classAbstractSynchronizedMutableCollection<T>
-
collectByte
- Specified by:
collectBytein interfaceListIterable<T>- Specified by:
collectBytein interfaceMutableCollection<T>- Specified by:
collectBytein interfaceMutableList<T>- Specified by:
collectBytein interfaceOrderedIterable<T>- Specified by:
collectBytein interfaceReversibleIterable<T>- Specified by:
collectBytein interfaceRichIterable<T>- Overrides:
collectBytein classAbstractSynchronizedMutableCollection<T>
-
collectChar
- Specified by:
collectCharin interfaceListIterable<T>- Specified by:
collectCharin interfaceMutableCollection<T>- Specified by:
collectCharin interfaceMutableList<T>- Specified by:
collectCharin interfaceOrderedIterable<T>- Specified by:
collectCharin interfaceReversibleIterable<T>- Specified by:
collectCharin interfaceRichIterable<T>- Overrides:
collectCharin classAbstractSynchronizedMutableCollection<T>
-
collectDouble
- Specified by:
collectDoublein interfaceListIterable<T>- Specified by:
collectDoublein interfaceMutableCollection<T>- Specified by:
collectDoublein interfaceMutableList<T>- Specified by:
collectDoublein interfaceOrderedIterable<T>- Specified by:
collectDoublein interfaceReversibleIterable<T>- Specified by:
collectDoublein interfaceRichIterable<T>- Overrides:
collectDoublein classAbstractSynchronizedMutableCollection<T>
-
collectFloat
- Specified by:
collectFloatin interfaceListIterable<T>- Specified by:
collectFloatin interfaceMutableCollection<T>- Specified by:
collectFloatin interfaceMutableList<T>- Specified by:
collectFloatin interfaceOrderedIterable<T>- Specified by:
collectFloatin interfaceReversibleIterable<T>- Specified by:
collectFloatin interfaceRichIterable<T>- Overrides:
collectFloatin classAbstractSynchronizedMutableCollection<T>
-
collectInt
- Specified by:
collectIntin interfaceListIterable<T>- Specified by:
collectIntin interfaceMutableCollection<T>- Specified by:
collectIntin interfaceMutableList<T>- Specified by:
collectIntin interfaceOrderedIterable<T>- Specified by:
collectIntin interfaceReversibleIterable<T>- Specified by:
collectIntin interfaceRichIterable<T>- Overrides:
collectIntin classAbstractSynchronizedMutableCollection<T>
-
collectLong
- Specified by:
collectLongin interfaceListIterable<T>- Specified by:
collectLongin interfaceMutableCollection<T>- Specified by:
collectLongin interfaceMutableList<T>- Specified by:
collectLongin interfaceOrderedIterable<T>- Specified by:
collectLongin interfaceReversibleIterable<T>- Specified by:
collectLongin interfaceRichIterable<T>- Overrides:
collectLongin classAbstractSynchronizedMutableCollection<T>
-
collectShort
- Specified by:
collectShortin interfaceListIterable<T>- Specified by:
collectShortin interfaceMutableCollection<T>- Specified by:
collectShortin interfaceMutableList<T>- Specified by:
collectShortin interfaceOrderedIterable<T>- Specified by:
collectShortin interfaceReversibleIterable<T>- Specified by:
collectShortin interfaceRichIterable<T>- Overrides:
collectShortin classAbstractSynchronizedMutableCollection<T>
-
collect
- Specified by:
collectin interfaceListIterable<T>- Specified by:
collectin interfaceMutableCollection<T>- Specified by:
collectin interfaceMutableList<T>- Specified by:
collectin interfaceOrderedIterable<T>- Specified by:
collectin interfaceReversibleIterable<T>- Specified by:
collectin interfaceRichIterable<T>- Overrides:
collectin classAbstractSynchronizedMutableCollection<T>
-
collectWithIndex
public <V> MutableList<V> collectWithIndex(ObjectIntToObjectFunction<? super T, ? extends V> function) - Specified by:
collectWithIndexin interfaceListIterable<T>- Specified by:
collectWithIndexin interfaceMutableList<T>- Specified by:
collectWithIndexin interfaceOrderedIterable<T>- Specified by:
collectWithIndexin interfaceReversibleIterable<T>- Since:
- 9.1.
-
collectWithIndex
public <V,R extends Collection<V>> R collectWithIndex(ObjectIntToObjectFunction<? super T, ? extends V> function, R target) - Specified by:
collectWithIndexin interfaceOrderedIterable<T>- Since:
- 9.1.
-
selectWithIndex
- Specified by:
selectWithIndexin interfaceListIterable<T>- Specified by:
selectWithIndexin interfaceMutableList<T>- Since:
- 11.0.
-
rejectWithIndex
- Specified by:
rejectWithIndexin interfaceListIterable<T>- Specified by:
rejectWithIndexin interfaceMutableList<T>- Since:
- 11.0.
-
selectWithIndex
public <R extends Collection<T>> R selectWithIndex(ObjectIntPredicate<? super T> predicate, R target) - Specified by:
selectWithIndexin interfaceOrderedIterable<T>- Since:
- 11.0.
-
rejectWithIndex
public <R extends Collection<T>> R rejectWithIndex(ObjectIntPredicate<? super T> predicate, R target) - Specified by:
rejectWithIndexin interfaceOrderedIterable<T>- Since:
- 11.0.
-
collectWith
public <P,V> MutableList<V> collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter) - Specified by:
collectWithin interfaceListIterable<T>- Specified by:
collectWithin interfaceMutableCollection<T>- Specified by:
collectWithin interfaceMutableList<T>- Specified by:
collectWithin interfaceOrderedIterable<T>- Specified by:
collectWithin interfaceReversibleIterable<T>- Specified by:
collectWithin interfaceRichIterable<T>- Overrides:
collectWithin classAbstractSynchronizedMutableCollection<T>
-
collectIf
public <V> MutableList<V> collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) - Specified by:
collectIfin interfaceListIterable<T>- Specified by:
collectIfin interfaceMutableCollection<T>- Specified by:
collectIfin interfaceMutableList<T>- Specified by:
collectIfin interfaceOrderedIterable<T>- Specified by:
collectIfin interfaceReversibleIterable<T>- Specified by:
collectIfin interfaceRichIterable<T>- Overrides:
collectIfin classAbstractSynchronizedMutableCollection<T>
-
flatCollect
- Specified by:
flatCollectin interfaceListIterable<T>- Specified by:
flatCollectin interfaceMutableCollection<T>- Specified by:
flatCollectin interfaceMutableList<T>- Specified by:
flatCollectin interfaceOrderedIterable<T>- Specified by:
flatCollectin interfaceReversibleIterable<T>- Specified by:
flatCollectin interfaceRichIterable<T>- Overrides:
flatCollectin classAbstractSynchronizedMutableCollection<T>
-
groupBy
- Specified by:
groupByin interfaceListIterable<T>- Specified by:
groupByin interfaceMutableCollection<T>- Specified by:
groupByin interfaceMutableList<T>- Specified by:
groupByin interfaceOrderedIterable<T>- Specified by:
groupByin interfaceReversibleIterable<T>- Specified by:
groupByin interfaceRichIterable<T>- Overrides:
groupByin classAbstractSynchronizedMutableCollection<T>
-
groupByEach
- Specified by:
groupByEachin interfaceListIterable<T>- Specified by:
groupByEachin interfaceMutableCollection<T>- Specified by:
groupByEachin interfaceMutableList<T>- Specified by:
groupByEachin interfaceOrderedIterable<T>- Specified by:
groupByEachin interfaceReversibleIterable<T>- Specified by:
groupByEachin interfaceRichIterable<T>- Overrides:
groupByEachin classAbstractSynchronizedMutableCollection<T>
-
zip
- Specified by:
zipin interfaceListIterable<T>- Specified by:
zipin interfaceMutableCollection<T>- Specified by:
zipin interfaceMutableList<T>- Specified by:
zipin interfaceOrderedIterable<T>- Specified by:
zipin interfaceReversibleIterable<T>- Specified by:
zipin interfaceRichIterable<T>- Overrides:
zipin classAbstractSynchronizedMutableCollection<T>
-
zipWithIndex
- Specified by:
zipWithIndexin interfaceListIterable<T>- Specified by:
zipWithIndexin interfaceMutableCollection<T>- Specified by:
zipWithIndexin interfaceMutableList<T>- Specified by:
zipWithIndexin interfaceOrderedIterable<T>- Specified by:
zipWithIndexin interfaceReversibleIterable<T>- Specified by:
zipWithIndexin interfaceRichIterable<T>- Overrides:
zipWithIndexin classAbstractSynchronizedMutableCollection<T>
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableCollection<T>- Specified by:
asUnmodifiablein interfaceMutableList<T>
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableCollection<T>- Specified by:
asSynchronizedin interfaceMutableList<T>
-