| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final IntObjectToIntFunction |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | allSatisfy(Predicate<? super T> predicate)
Overrides org. Implements org. Returns true if the predicate evaluates to true for every element of the iterable or if the iterable is empty. |
| public <P> boolean | allSatisfyWith(Predicate2<? super T, ? super P> predicate, P parameter)
Overrides org. Implements org. Returns true if the predicate evaluates to true for every element of the collection, or returns false. |
| public boolean | anySatisfy(Predicate<? super T> predicate)
Overrides org. Implements org. Returns true if the predicate evaluates to true for any element of the iterable. |
| public <P> boolean | anySatisfyWith(Predicate2<? super T, ? super P> predicate, P parameter)
Overrides org. Implements org. Returns true if the predicate evaluates to true for any element of the collection, or return false. |
| public void | appendString(Appendable appendable, String separator)
Overrides org. Overrides default org. Prints a string representation of this collection onto the given |
| public void | appendString(Appendable appendable, String start, String separator, String end)
Overrides org. Implements org. Prints a string representation of this collection onto the given |
| public ParallelListIterable | asParallel(ExecutorService executorService, int batchSize)
Implements org. Returns a parallel iterable of this ListIterable. |
| public ReverseIterable | asReversed()
Overrides default org. Returns a reversed view of this ReversibleIterable. |
| public MutableList | asSynchronized()
Implements org. Returns a synchronized wrapper backed by this collection. |
| public MutableList | asUnmodifiable()
Implements org. Returns an unmodifiable view of the list. |
| public int | binarySearch(T key, Comparator<? super T> comparator)
Overrides default org. Searches for the specified object using the binary search algorithm. |
| public RichIterable | chunk(int size)
Overrides org. Implements org. Partitions elements in fixed size chunks. |
| public void | clear()
Implements java. Removes all of the elements from this list (optional operation). |
| public MutableList | clone()
Overrides java. Implements org. Creates and returns a copy of this object. |
| public <V, R extends Collection | collect(Function<? super T, ? extends V> function, R target)
Overrides org. Implements org. Same as |
| public <V, R extends Collection | collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function, R target)
Overrides org. Implements org. Same as the collectIf method with two parameters but uses the specified target collection for the results. |
| public <P, A, R extends Collection | collectWith(Function2<? super T, ? super P, ? extends A> function, P parameter, R target)
Overrides org. Implements org. Same as collectWith but with a targetCollection parameter to gather the results. |
| public boolean | contains(Object object)
Overrides org. Implements java. Returns |
| public boolean | containsAll(Collection<?> source)
Overrides org. Implements java. Returns |
| public <S> boolean | corresponds(OrderedIterable<S> other, Predicate2<? super T, ? super S> predicate)
Implements org. Returns true if both OrderedIterables have the same length
and |
| public int | count(Predicate<? super T> predicate)
Overrides org. Implements org. Return the total number of elements that answer true to the specified predicate. |
| public <P> int | countWith(Predicate2<? super T, ? super P> predicate, P parameter)
Overrides org. Implements org. Returns the total number of elements that evaluate to true for the specified predicate. |
| public T | detect(Predicate<? super T> predicate)
Overrides org. Implements org. Returns the first element of the iterable for which the predicate evaluates to true or null in the case where no element returns true. |
| public int | detectIndex(Predicate<? super T> predicate)
Implements org. Returns the index of the first element of the |
| public int | detectLastIndex(Predicate<? super T> predicate)
Implements org. Returns the index of the last element of the |
| public Optional | detectOptional(Predicate<? super T> predicate)
Overrides org. Implements org. Returns the first element of the iterable for which the predicate evaluates to true as an Optional. |
| public <P> T | detectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Overrides org. Implements org. Returns the first element that evaluates to true for the specified predicate2 and parameter, or null if none evaluate to true. |
| public <P> Optional | detectWithOptional(Predicate2<? super T, ? super P> predicate, P parameter)
Overrides org. Implements org. Returns the first element that evaluates to true for the specified predicate2 and parameter as an Optional. |
| public MutableList | distinct()
Implements org. Returns a new |
| public MutableList | distinct(HashingStrategy<? super T> hashingStrategy)
Implements org. Returns a new |
| public <V> MutableList | distinctBy(Function<? super T, ? extends V> function)
Implements org. Returns a new |
| public MutableList | drop(int count)
Implements org. Returns an iterable after skipping the first |
| public MutableList | dropWhile(Predicate<? super T> predicate)
Implements org. Returns the final elements that do not satisfy the Predicate. |
| public void | each(Procedure<? super T> procedure)
Implements org. The procedure is executed for each element in the iterable. |
| public boolean | equals(Object that)
Overrides java. Implements java. Compares the specified object with this list for equality. |
| public <V, R extends Collection | flatCollect(Function<? super T, ? extends Iterable<V>> function, R target)
Overrides org. Implements org. Same as flatCollect, only the results are collected into the target collection. |
| public void | forEach(int from, int to, Procedure<? super T> procedure)
Implements org. Iterates over the section of the iterable covered by the specified inclusive indexes. |
| public <P> void | forEachWith(Procedure2<? super T, ? super P> procedure, P parameter)
Overrides org. Implements org. The procedure2 is evaluated for each element in the iterable with the specified parameter provided as the second argument. |
| public void | forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure)
Overrides org. Implements org. Iterates over the iterable passing each element and the current relative int index to the specified instance of ObjectIntProcedure. |
| public void | forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure)
Implements org. Iterates over the section of the iterable covered by the specified inclusive indexes. |
| public T | getFirst()
Overrides default org. Implements org. This default override exists because java.util.List added a default getFirst() method in Java 21. |
| public T | getLast()
Overrides default org. Implements org. This default override exists because java.util.List added a default getLast() method in Java 21. |
| public <V> FastListMultimap | groupBy(Function<? super T, ? extends V> function)
Implements 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> FastListMultimap | groupByEach(Function<? super T, ? extends Iterable<V>> function)
Implements org. Similar to |
| public <K> MutableMap | groupByUniqueKey(Function<? super T, ? extends K> function)
Overrides org. Overrides default org. Implements org. For each element of the iterable, the function is evaluated, and the results of these evaluations are collected into a new map, where the transformed value is the key. |
| public int | hashCode()
Overrides java. Implements java. Returns the hash code value for this list. |
| public int | indexOf(Object object)
Overrides default org. 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 <IV> IV | injectInto(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function)
Overrides org. Implements org. Returns the final result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public int | injectInto(int injectedValue, IntObjectToIntFunction<? super T> function)
Overrides org. Implements org. Returns the final int result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public float | injectInto(float injectedValue, FloatObjectToFloatFunction<? super T> function)
Overrides org. Implements org. Returns the final float result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public long | injectInto(long injectedValue, LongObjectToLongFunction<? super T> function)
Overrides org. Implements org. Returns the final long result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public <IV, P> IV | injectIntoWith(IV injectValue, Function3<? super IV, ? super T, ? super P, ? extends IV> function, P parameter)
Overrides org. Implements org. Returns the final result of evaluating function using each element of the iterable, the previous evaluation result and the parameters. |
| public Iterator | iterator()
Implements java. Returns an iterator over the elements in this list in proper sequence. |
| public int | lastIndexOf(Object object)
Implements java. Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element. |
| public ListIterator | listIterator()
Implements java. Returns a list iterator over the elements in this list (in proper sequence). |
| public ListIterator | listIterator(int index)
Implements java. Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list. |
| public T | max(Comparator<? super T> comparator)
Overrides org. Implements org. Returns the maximum element out of this container based on the comparator. |
| public T | max()
Overrides org. Implements org. Returns the maximum element out of this container based on the natural order. |
| public <V extends Comparable | maxBy(Function<? super T, ? extends V> function)
Overrides org. Implements org. Returns the maximum elements out of this container based on the natural order of the attribute returned by Function. |
| public T | min(Comparator<? super T> comparator)
Overrides org. Implements org. Returns the minimum element out of this container based on the comparator. |
| public T | min()
Overrides org. Implements org. Returns the minimum element out of this container based on the natural order. |
| public <V extends Comparable | minBy(Function<? super T, ? extends V> function)
Overrides org. Implements org. Returns the minimum elements out of this container based on the natural order of the attribute returned by Function. |
| public MutableList | newEmpty()
Implements org. Creates a new empty mutable version of the same collection type. |
| public boolean | noneSatisfy(Predicate<? super T> predicate)
Overrides org. Implements org. Returns true if the predicate evaluates to false for every element of the iterable or if the iterable is empty. |
| public <P> boolean | noneSatisfyWith(Predicate2<? super T, ? super P> predicate, P parameter)
Overrides org. Implements org. Returns true if the predicate evaluates to false for every element of the collection, or return false. |
| public PartitionMutableList | partition(Predicate<? super T> predicate)
Implements org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public PartitionMutableList | partitionWhile(Predicate<? super T> predicate)
Implements 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)
Implements org. Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| public <R extends Collection | reject(Predicate<? super T> predicate, R target)
Overrides org. Implements org. Same as the reject method with one parameter but uses the specified target collection for the results. |
| public <P, R extends Collection | rejectWith(Predicate2<? super T, ? super P> predicate, P parameter, R target)
Overrides org. Implements org. Similar to |
| public boolean | removeAll(Collection<?> collection)
Overrides org. Implements java. Removes from this list all of its elements that are contained in the specified collection (optional operation). |
| public boolean | removeIf(Predicate<? super T> predicate)
Overrides org. Implements org. Removes all elements in the collection that evaluate to true for the specified predicate. |
| public <P> boolean | removeIfWith(Predicate2<? super T, ? super P> predicate, P parameter)
Overrides org. Implements org. Removes all elements in the collection that evaluate to true for the specified predicate2 and parameter. |
| protected void | removeRange(int
inclusive fromIndex, int exclusive toIndex)Removes from this list all the elements whose index is between
|
| public boolean | retainAll(Collection<?> collection)
Overrides org. Implements java. Retains only the elements in this list that are contained in the specified collection (optional operation). |
| public <R extends Collection | select(Predicate<? super T> predicate, R target)
Overrides org. Implements org. Same as the select method with one parameter but uses the specified target collection for the results. |
| public <P> Twin | selectAndRejectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Overrides org. Implements org. Filters a collection into two separate collections based on a predicate returned via a Pair. |
| public <S> MutableList | selectInstancesOf(Class<S> clazz)
Implements org. Returns all elements of the source collection that are instances of the Class |
| public <P, R extends Collection | selectWith(Predicate2<? super T, ? super P> predicate, P parameter, R target)
Overrides org. Implements org. Similar to |
| public MutableList | sortThisByBoolean(BooleanFunction<? super T> function)
Implements org.
|
| public MutableList | sortThisByByte(ByteFunction<? super T> function)
Implements org.
|
| public MutableList | sortThisByChar(CharFunction<? super T> function)
Implements org.
|
| public MutableList | sortThisByDouble(DoubleFunction<? super T> function)
Implements org.
|
| public MutableList | sortThisByFloat(FloatFunction<? super T> function)
Implements org.
|
| public MutableList | sortThisByInt(IntFunction<? super T> function)
Implements org.
|
| public MutableList | sortThisByLong(LongFunction<? super T> function)
Implements org.
|
| public MutableList | sortThisByShort(ShortFunction<? super T> function)
Implements org.
|
| public MutableList | subList(int fromIndex, int toIndex)
Implements org. Returns a view of the portion of this list between the specified
|
| pack-priv static void | |
| public double | sumOfDouble(DoubleFunction<? super T> function)
Overrides org. Implements org. Returns the final double result of evaluating function for each element of the iterable and adding the results together. |
| public double | sumOfFloat(FloatFunction<? super T> function)
Overrides org. Implements org. Returns the final double result of evaluating function for each element of the iterable and adding the results together. |
| public long | sumOfInt(IntFunction<? super T> function)
Overrides org. Implements org. Returns the final long result of evaluating function for each element of the iterable and adding the results together. |
| public long | sumOfLong(LongFunction<? super T> function)
Overrides org. Implements org. Returns the final long result of evaluating function for each element of the iterable and adding the results together. |
| public MutableList | take(int count)
Implements org. Returns the first |
| public MutableList | takeWhile(Predicate<? super T> predicate)
Implements org. Returns the initial elements that satisfy the Predicate. |
| public MutableList | tap(Procedure<? super T> procedure)
Overrides default org. Implements org. Executes the Procedure for each element in the iterable and returns |
| public MutableSet | toSet()
Overrides org. Implements org. Converts the collection to a MutableSet implementation. |
| public MutableList | toSortedList()
Overrides default org. Converts the collection to a MutableList implementation and sorts it using the natural order of the elements. |
| public <S, R extends Collection | zip(Iterable<S> that, R target)
Overrides org. Implements org. Same as |
| public <S> MutableList | zip(Iterable<S> that)
Implements org. Returns a |
| public <R extends Collection | zipWithIndex(R target)
Overrides org. Implements org. Same as |
| public MutableList | zipWithIndex()
Implements org. Zips this |