| Modifier and Type | Method and Description |
|---|---|
| public MutableList | asSynchronized()
Redeclares org. Returns a synchronized wrapper backed by this collection. |
| public MutableList | Returns: an unmodifiable view of this listRedeclares org. Returns an unmodifiable view of the list. |
| public MutableList | |
| public default <V> MutableList | collect(Function<? super T, ? extends V> function)
Implements org. Returns a new MutableCollection with the results of applying the specified function to each element of the source collection. |
| public default MutableBooleanList | collectBoolean(BooleanFunction<? super T> booleanFunction)
Overrides default org. Implements org. Returns a new primitive |
| public default MutableByteList | collectByte(ByteFunction<? super T> byteFunction)
Overrides default org. Implements org. Returns a new primitive |
| public default MutableCharList | collectChar(CharFunction<? super T> charFunction)
Overrides default org. Implements org. Returns a new primitive |
| public default MutableDoubleList | collectDouble(DoubleFunction<? super T> doubleFunction)
Overrides default org. Implements org. Returns a new primitive |
| public default MutableFloatList | collectFloat(FloatFunction<? super T> floatFunction)
Overrides default org. Implements org. Returns a new primitive |
| public default <V> MutableList | collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function)
Implements org. Returns a new MutableCollection with the results of applying the specified function to each element of the source collection, but only for elements that evaluate to true for the specified predicate. |
| public default MutableIntList | collectInt(IntFunction<? super T> intFunction)
Overrides default org. Implements org. Returns a new primitive |
| public default MutableLongList | collectLong(LongFunction<? super T> longFunction)
Overrides default org. Implements org. Returns a new primitive |
| public default MutableShortList | collectShort(ShortFunction<? super T> shortFunction)
Overrides default org. Implements org. Returns a new primitive |
| public default <P, V> MutableList | collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)
Implements org. Same as |
| public default <V> MutableList | collectWithIndex(ObjectIntToObjectFunction<? super T, ? extends V> function)
Overrides default org. Returns a new OrderedIterable using results obtained by applying the specified function to each element and its corresponding index. |
| public MutableList | distinct()
Redeclares org. Returns a new |
| public MutableList | distinct(HashingStrategy<? super T> hashingStrategy)
Redeclares org. Returns a new |
| public <V> MutableList | distinctBy(Function<? super T, ? extends V> function)
Redeclares org. Returns a new |
| public MutableList | drop(int count)
Redeclares org. Returns an iterable after skipping the first |
| public MutableList | dropWhile(Predicate<? super T> predicate)
Redeclares org. Returns the final elements that do not satisfy the Predicate. |
| public default <V> MutableList | flatCollect(Function<? super T, ? extends Iterable<V>> function)
Implements org.
|
| public default <P, V> MutableList | flatCollectWith(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter)
Overrides default org. Same as flatCollect, only with a Function2 that is passed an extra parameter. |
| public default T | getFirst()
Overrides default java. Implements org. This default override exists because java.util.List added a default getFirst() method in Java 21. |
| public default T | getLast()
Overrides default java. Implements org. This default override exists because java.util.List added a default getLast() method in Java 21. |
| public <V> MutableListMultimap | groupBy(Function<? super T, ? extends V> function)
Redeclares org. For each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable. |
| public <V> MutableListMultimap | groupByEach(Function<? super T, ? extends Iterable<V>> function)
Redeclares org. Similar to |
| public default int | indexOf(Object o)
Overrides default org. Implements java. Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. |
| public MutableList | newEmpty()
Redeclares org. Creates a new empty mutable version of the same collection type. |
| public PartitionMutableList | partition(Predicate<? super T> predicate)
Redeclares org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public PartitionMutableList | partitionWhile(Predicate<? super T> predicate)
Redeclares org. Returns a Partition of the initial elements that satisfy the Predicate and the remaining elements. |
| public <P> PartitionMutableList | partitionWith(Predicate2<? super T, ? super P> predicate, P parameter)
Redeclares org. Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| public default MutableList | reject(Predicate<? super T> predicate)
Implements org. Returns a MutableCollection with all elements that evaluate to false for the specified predicate. |
| public default <P> MutableList | rejectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Returns a MutableCollection with all elements that evaluate to false for the specified predicate2 and parameter. |
| public default MutableList | rejectWithIndex(ObjectIntPredicate<? super T> predicate)
Overrides default org. Returns a new MutableList with all elements of the collection that return false when evaluating the specified predicate which is supplied each element and its relative index. |
| public default MutableList | |
| public default MutableList | select(Predicate<? super T> predicate)
Implements org. Returns a MutableCollection with all elements that evaluate to true for the specified predicate. |
| public <S> MutableList | selectInstancesOf(Class<S> clazz)
Redeclares org. Returns all elements of the source collection that are instances of the Class |
| public default <P> MutableList | selectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Returns a MutableCollection with all elements that evaluate to true for the specified predicate2 and parameter. |
| public default MutableList | selectWithIndex(ObjectIntPredicate<? super T> predicate)
Overrides default org. Returns a new MutableList with all elements of the collection that return true when evaluating the specified predicate which is supplied each element and its relative index. |
| public default MutableList | |
| public default MutableList | |
| public default MutableList | sortThis(Comparator<? super T> comparator)
Sorts the internal data structure of this list and returns the list itself as a convenience. |
| public default MutableList | sortThis()
Sorts the internal data structure of this list and returns the list itself as a convenience. |
| public default <V extends Comparable | sortThisBy(Function<? super T, ? extends V> function)
Sorts the internal data structure of this list based on the natural order of the attribute returned by |
| public MutableList | |
| public MutableList | |
| public MutableList | |
| public MutableList | |
| public MutableList | |
| public MutableList | |
| public MutableList | |
| public MutableList | |
| public MutableList | subList(int fromIndex, int toIndex)
Redeclares java. Returns a view of the portion of this list between the specified
|
| public MutableList | take(int count)
Redeclares org. Returns the first |
| public MutableList | takeWhile(Predicate<? super T> predicate)
Redeclares org. Returns the initial elements that satisfy the Predicate. |
| public default MutableList | tap(Procedure<? super T> procedure)
Implements org. Executes the Procedure for each element in the iterable and returns |
| public default Object[] | toArray()
Overrides default org. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
| public default <T1> T1[] | toArray(T1[] a)
Overrides default org. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. |
| public default ImmutableList | toImmutable()
Implements org. Returns an immutable copy of this list. |
| public default ImmutableList | toImmutableList()
Overrides default org. Converts the MutableList to the default ImmutableList implementation. |
| public default MutableList | toReversed()
Implements org. Returns a new MutableList in reverse order. |
| public default MutableList | with(T element)
Implements org. This method allows mutable and fixed size collections the ability to add elements to their existing elements. |
| public default MutableList | withAll(Iterable<? extends T> elements)
Implements org. This method allows mutable and fixed size collections the ability to add multiple elements to their existing elements. |
| public default MutableList | without(T element)
Implements org. This method allows mutable and fixed size collections the ability to remove elements from their existing elements. |
| public default MutableList | withoutAll(Iterable<? extends T> elements)
Implements org. This method allows mutable and fixed size collections the ability to remove multiple elements from their existing elements. |
| public <S> MutableList | zip(Iterable<S> that)
Redeclares org. Returns a |
| public MutableList | zipWithIndex()
Redeclares org. Zips this |