public class SynchronizedMutableList<T> extends AbstractSynchronizedMutableCollection<T> implements MutableList<T>, Serializable
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).MutableList.asSynchronized(),
Serialized Formadd, addAll, addAllIterable, aggregateBy, aggregateInPlaceBy, clear, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, remove, removeAll, removeAllIterable, removeIf, removeIfWith, retainAll, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLongallSatisfy, 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, 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, zipWithIndexgetClass, hashCode, notify, notifyAll, wait, wait, waitflatCollectWith, toImmutableList, with, withAll, without, withoutAlladdAllIterable, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, removeAllIterable, removeIf, removeIfWith, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLongadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streamequals, getFirst, getLast, hashCodeforEachWithIndexaggregateBy, 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, 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, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, 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, toStringforEachWithpublic static <E,L extends List<E>> SynchronizedMutableList<E> of(L list)
public static <E,L extends List<E>> SynchronizedMutableList<E> of(L list, Object lock)
public MutableList<T> newEmpty()
newEmpty in interface MutableCollection<T>newEmpty in interface MutableList<T>public MutableList<T> clone()
clone in interface MutableList<T>clone in class Objectpublic boolean addAll(int index,
Collection<? extends T> collection)
public MutableList<T> subList(int fromIndex, int toIndex)
subList in interface List<T>subList in interface ListIterable<T>subList in interface MutableList<T>public T get(int index)
public void replaceAll(UnaryOperator<T> operator)
replaceAll in interface List<T>public void sort(Comparator<? super T> comparator)
public Optional<T> getFirstOptional()
getFirstOptional in interface OrderedIterable<T>public Optional<T> getLastOptional()
getLastOptional in interface OrderedIterable<T>public int lastIndexOf(Object o)
lastIndexOf in interface List<T>lastIndexOf in interface ListIterable<T>public ListIterator<T> listIterator()
listIterator in interface List<T>listIterator in interface ListIterable<T>public ListIterator<T> listIterator(int index)
listIterator in interface List<T>listIterator in interface ListIterable<T>public ParallelListIterable<T> asParallel(ExecutorService executorService, int batchSize)
asParallel in interface ListIterable<T>public int binarySearch(T key, Comparator<? super T> comparator)
binarySearch in interface ListIterable<T>public int binarySearch(T key)
binarySearch in interface ListIterable<T>public int indexOf(Object o)
public MutableList<T> distinct()
distinct in interface ListIterable<T>distinct in interface MutableList<T>distinct in interface OrderedIterable<T>distinct in interface ReversibleIterable<T>public MutableList<T> distinct(HashingStrategy<? super T> hashingStrategy)
distinct in interface ListIterable<T>distinct in interface MutableList<T>public <V> MutableList<T> distinctBy(Function<? super T,? extends V> function)
distinctBy in interface ListIterable<T>distinctBy in interface MutableList<T>public <S> boolean corresponds(OrderedIterable<S> other, Predicate2<? super T,? super S> predicate)
corresponds in interface OrderedIterable<T>public <T2> void forEachInBoth(ListIterable<T2> other, Procedure2<? super T,? super T2> procedure)
forEachInBoth in interface ListIterable<T>public void forEach(int fromIndex,
int toIndex,
Procedure<? super T> procedure)
forEach in interface OrderedIterable<T>public MutableList<T> takeWhile(Predicate<? super T> predicate)
takeWhile in interface ListIterable<T>takeWhile in interface MutableList<T>takeWhile in interface OrderedIterable<T>takeWhile in interface ReversibleIterable<T>public void forEachWithIndex(int fromIndex,
int toIndex,
ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface OrderedIterable<T>public MutableList<T> dropWhile(Predicate<? super T> predicate)
dropWhile in interface ListIterable<T>dropWhile in interface MutableList<T>dropWhile in interface OrderedIterable<T>dropWhile in interface ReversibleIterable<T>public PartitionMutableList<T> partitionWhile(Predicate<? super T> predicate)
partitionWhile in interface ListIterable<T>partitionWhile in interface MutableList<T>partitionWhile in interface OrderedIterable<T>partitionWhile in interface ReversibleIterable<T>public int detectIndex(Predicate<? super T> predicate)
detectIndex in interface OrderedIterable<T>public int detectLastIndex(Predicate<? super T> predicate)
detectLastIndex in interface ReversibleIterable<T>public MutableList<T> take(int count)
take in interface ListIterable<T>take in interface MutableList<T>take in interface ReversibleIterable<T>public MutableList<T> drop(int count)
drop in interface ListIterable<T>drop in interface MutableList<T>drop in interface ReversibleIterable<T>public void reverseForEach(Procedure<? super T> procedure)
reverseForEach in interface ReversibleIterable<T>public void reverseForEachWithIndex(ObjectIntProcedure<? super T> procedure)
reverseForEachWithIndex in interface ReversibleIterable<T>public MutableList<T> sortThis(Comparator<? super T> comparator)
sortThis in interface MutableList<T>public MutableList<T> sortThis()
sortThis in interface MutableList<T>public <V extends Comparable<? super V>> MutableList<T> sortThisBy(Function<? super T,? extends V> function)
sortThisBy in interface MutableList<T>public MutableList<T> sortThisByInt(IntFunction<? super T> function)
sortThisByInt in interface MutableList<T>public MutableList<T> sortThisByBoolean(BooleanFunction<? super T> function)
sortThisByBoolean in interface MutableList<T>public MutableList<T> sortThisByChar(CharFunction<? super T> function)
sortThisByChar in interface MutableList<T>public MutableList<T> sortThisByByte(ByteFunction<? super T> function)
sortThisByByte in interface MutableList<T>public MutableList<T> sortThisByShort(ShortFunction<? super T> function)
sortThisByShort in interface MutableList<T>public MutableList<T> sortThisByFloat(FloatFunction<? super T> function)
sortThisByFloat in interface MutableList<T>public MutableList<T> sortThisByLong(LongFunction<? super T> function)
sortThisByLong in interface MutableList<T>public MutableList<T> sortThisByDouble(DoubleFunction<? super T> function)
sortThisByDouble in interface MutableList<T>public MutableList<T> reverseThis()
reverseThis in interface MutableList<T>public MutableList<T> shuffleThis()
shuffleThis in interface MutableList<T>public MutableList<T> shuffleThis(Random rnd)
shuffleThis in interface MutableList<T>public LazyIterable<T> asReversed()
asReversed in interface ReversibleIterable<T>public MutableList<T> toReversed()
toReversed in interface ListIterable<T>toReversed in interface MutableList<T>toReversed in interface ReversibleIterable<T>public MutableStack<T> toStack()
toStack in interface OrderedIterable<T>public ImmutableList<T> toImmutable()
toImmutable in interface MutableCollection<T>toImmutable in interface ListIterable<T>toImmutable in interface MutableList<T>public MutableList<T> tap(Procedure<? super T> procedure)
tap in interface MutableCollection<T>tap in interface ListIterable<T>tap in interface MutableList<T>tap in interface OrderedIterable<T>tap in interface ReversibleIterable<T>tap in interface RichIterable<T>tap in class AbstractSynchronizedMutableCollection<T>public MutableList<T> select(Predicate<? super T> predicate)
select in interface MutableCollection<T>select in interface ListIterable<T>select in interface MutableList<T>select in interface OrderedIterable<T>select in interface ReversibleIterable<T>select in interface RichIterable<T>select in class AbstractSynchronizedMutableCollection<T>public <P> MutableList<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
selectWith in interface MutableCollection<T>selectWith in interface ListIterable<T>selectWith in interface MutableList<T>selectWith in interface OrderedIterable<T>selectWith in interface ReversibleIterable<T>selectWith in interface RichIterable<T>selectWith in class AbstractSynchronizedMutableCollection<T>public MutableList<T> reject(Predicate<? super T> predicate)
reject in interface MutableCollection<T>reject in interface ListIterable<T>reject in interface MutableList<T>reject in interface OrderedIterable<T>reject in interface ReversibleIterable<T>reject in interface RichIterable<T>reject in class AbstractSynchronizedMutableCollection<T>public <P> MutableList<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
rejectWith in interface MutableCollection<T>rejectWith in interface ListIterable<T>rejectWith in interface MutableList<T>rejectWith in interface OrderedIterable<T>rejectWith in interface ReversibleIterable<T>rejectWith in interface RichIterable<T>rejectWith in class AbstractSynchronizedMutableCollection<T>public PartitionMutableList<T> partition(Predicate<? super T> predicate)
partition in interface MutableCollection<T>partition in interface ListIterable<T>partition in interface MutableList<T>partition in interface OrderedIterable<T>partition in interface ReversibleIterable<T>partition in interface RichIterable<T>partition in class AbstractSynchronizedMutableCollection<T>public <P> PartitionMutableList<T> partitionWith(Predicate2<? super T,? super P> predicate, P parameter)
partitionWith in interface MutableCollection<T>partitionWith in interface ListIterable<T>partitionWith in interface MutableList<T>partitionWith in interface OrderedIterable<T>partitionWith in interface ReversibleIterable<T>partitionWith in interface RichIterable<T>partitionWith in class AbstractSynchronizedMutableCollection<T>public <S> MutableList<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface MutableCollection<T>selectInstancesOf in interface ListIterable<T>selectInstancesOf in interface MutableList<T>selectInstancesOf in interface OrderedIterable<T>selectInstancesOf in interface ReversibleIterable<T>selectInstancesOf in interface RichIterable<T>selectInstancesOf in class AbstractSynchronizedMutableCollection<T>public MutableBooleanList collectBoolean(BooleanFunction<? super T> booleanFunction)
collectBoolean in interface MutableCollection<T>collectBoolean in interface ListIterable<T>collectBoolean in interface MutableList<T>collectBoolean in interface OrderedIterable<T>collectBoolean in interface ReversibleIterable<T>collectBoolean in interface RichIterable<T>collectBoolean in class AbstractSynchronizedMutableCollection<T>public MutableByteList collectByte(ByteFunction<? super T> byteFunction)
collectByte in interface MutableCollection<T>collectByte in interface ListIterable<T>collectByte in interface MutableList<T>collectByte in interface OrderedIterable<T>collectByte in interface ReversibleIterable<T>collectByte in interface RichIterable<T>collectByte in class AbstractSynchronizedMutableCollection<T>public MutableCharList collectChar(CharFunction<? super T> charFunction)
collectChar in interface MutableCollection<T>collectChar in interface ListIterable<T>collectChar in interface MutableList<T>collectChar in interface OrderedIterable<T>collectChar in interface ReversibleIterable<T>collectChar in interface RichIterable<T>collectChar in class AbstractSynchronizedMutableCollection<T>public MutableDoubleList collectDouble(DoubleFunction<? super T> doubleFunction)
collectDouble in interface MutableCollection<T>collectDouble in interface ListIterable<T>collectDouble in interface MutableList<T>collectDouble in interface OrderedIterable<T>collectDouble in interface ReversibleIterable<T>collectDouble in interface RichIterable<T>collectDouble in class AbstractSynchronizedMutableCollection<T>public MutableFloatList collectFloat(FloatFunction<? super T> floatFunction)
collectFloat in interface MutableCollection<T>collectFloat in interface ListIterable<T>collectFloat in interface MutableList<T>collectFloat in interface OrderedIterable<T>collectFloat in interface ReversibleIterable<T>collectFloat in interface RichIterable<T>collectFloat in class AbstractSynchronizedMutableCollection<T>public MutableIntList collectInt(IntFunction<? super T> intFunction)
collectInt in interface MutableCollection<T>collectInt in interface ListIterable<T>collectInt in interface MutableList<T>collectInt in interface OrderedIterable<T>collectInt in interface ReversibleIterable<T>collectInt in interface RichIterable<T>collectInt in class AbstractSynchronizedMutableCollection<T>public MutableLongList collectLong(LongFunction<? super T> longFunction)
collectLong in interface MutableCollection<T>collectLong in interface ListIterable<T>collectLong in interface MutableList<T>collectLong in interface OrderedIterable<T>collectLong in interface ReversibleIterable<T>collectLong in interface RichIterable<T>collectLong in class AbstractSynchronizedMutableCollection<T>public MutableShortList collectShort(ShortFunction<? super T> shortFunction)
collectShort in interface MutableCollection<T>collectShort in interface ListIterable<T>collectShort in interface MutableList<T>collectShort in interface OrderedIterable<T>collectShort in interface ReversibleIterable<T>collectShort in interface RichIterable<T>collectShort in class AbstractSynchronizedMutableCollection<T>public <V> MutableList<V> collect(Function<? super T,? extends V> function)
collect in interface MutableCollection<T>collect in interface ListIterable<T>collect in interface MutableList<T>collect in interface OrderedIterable<T>collect in interface ReversibleIterable<T>collect in interface RichIterable<T>collect in class AbstractSynchronizedMutableCollection<T>public <V> MutableList<V> collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function)
collectWithIndex in interface ListIterable<T>collectWithIndex in interface MutableList<T>collectWithIndex in interface OrderedIterable<T>collectWithIndex in interface ReversibleIterable<T>public <V,R extends Collection<V>> R collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function, R target)
collectWithIndex in interface OrderedIterable<T>public MutableList<T> selectWithIndex(ObjectIntPredicate<? super T> predicate)
selectWithIndex in interface ListIterable<T>selectWithIndex in interface MutableList<T>public MutableList<T> rejectWithIndex(ObjectIntPredicate<? super T> predicate)
rejectWithIndex in interface ListIterable<T>rejectWithIndex in interface MutableList<T>public <R extends Collection<T>> R selectWithIndex(ObjectIntPredicate<? super T> predicate, R target)
selectWithIndex in interface OrderedIterable<T>public <R extends Collection<T>> R rejectWithIndex(ObjectIntPredicate<? super T> predicate, R target)
rejectWithIndex in interface OrderedIterable<T>public <P,V> MutableList<V> collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
collectWith in interface MutableCollection<T>collectWith in interface ListIterable<T>collectWith in interface MutableList<T>collectWith in interface OrderedIterable<T>collectWith in interface ReversibleIterable<T>collectWith in interface RichIterable<T>collectWith in class AbstractSynchronizedMutableCollection<T>public <V> MutableList<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
collectIf in interface MutableCollection<T>collectIf in interface ListIterable<T>collectIf in interface MutableList<T>collectIf in interface OrderedIterable<T>collectIf in interface ReversibleIterable<T>collectIf in interface RichIterable<T>collectIf in class AbstractSynchronizedMutableCollection<T>public <V> MutableList<V> flatCollect(Function<? super T,? extends Iterable<V>> function)
flatCollect in interface MutableCollection<T>flatCollect in interface ListIterable<T>flatCollect in interface MutableList<T>flatCollect in interface OrderedIterable<T>flatCollect in interface ReversibleIterable<T>flatCollect in interface RichIterable<T>flatCollect in class AbstractSynchronizedMutableCollection<T>public <V> MutableListMultimap<V,T> groupBy(Function<? super T,? extends V> function)
groupBy in interface MutableCollection<T>groupBy in interface ListIterable<T>groupBy in interface MutableList<T>groupBy in interface OrderedIterable<T>groupBy in interface ReversibleIterable<T>groupBy in interface RichIterable<T>groupBy in class AbstractSynchronizedMutableCollection<T>public <V> MutableListMultimap<V,T> groupByEach(Function<? super T,? extends Iterable<V>> function)
groupByEach in interface MutableCollection<T>groupByEach in interface ListIterable<T>groupByEach in interface MutableList<T>groupByEach in interface OrderedIterable<T>groupByEach in interface ReversibleIterable<T>groupByEach in interface RichIterable<T>groupByEach in class AbstractSynchronizedMutableCollection<T>public <S> MutableList<Pair<T,S>> zip(Iterable<S> that)
zip in interface MutableCollection<T>zip in interface ListIterable<T>zip in interface MutableList<T>zip in interface OrderedIterable<T>zip in interface ReversibleIterable<T>zip in interface RichIterable<T>zip in class AbstractSynchronizedMutableCollection<T>public MutableList<Pair<T,Integer>> zipWithIndex()
zipWithIndex in interface MutableCollection<T>zipWithIndex in interface ListIterable<T>zipWithIndex in interface MutableList<T>zipWithIndex in interface OrderedIterable<T>zipWithIndex in interface ReversibleIterable<T>zipWithIndex in interface RichIterable<T>zipWithIndex in class AbstractSynchronizedMutableCollection<T>public MutableList<T> asUnmodifiable()
asUnmodifiable in interface MutableCollection<T>asUnmodifiable in interface MutableList<T>public MutableList<T> asSynchronized()
asSynchronized in interface MutableCollection<T>asSynchronized in interface MutableList<T>Copyright © 2004–2022. All rights reserved.