| Modifier and Type | Field and Description |
|---|---|
| protected T[] | |
| private static final Object[] |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | add(int index, T element)
Implements java. Inserts the specified element at the specified position in this list (optional operation). |
| public boolean | addAll(Collection<? extends T> collection)
Overrides org. Implements java. Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation). |
| public boolean | addAll(int index, Collection<? extends T> collection)
Implements java. Inserts all of the elements in the specified collection into this list at the specified position (optional operation). |
| public boolean | addAllIterable(Iterable<? extends T> iterable)
Overrides org. Implements org.
|
| 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 start, String separator, String end)
Overrides org. Implements org. Prints a string representation of this collection onto the given |
| public void | clear()
Overrides org. Implements java. Removes all of the elements from this list (optional operation). |
| public <V> MutableList | collect(Function<? super T, ? extends V> function)
Overrides default org. Implements org. Returns a new MutableCollection with the results of applying the specified function to each element of the source collection. |
| 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> MutableList | collectWith(Function2<? super T, ? super P, ? extends A> function, P parameter)
Overrides default org. Implements org. Same as |
| 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 o)
Overrides org. Implements java. Returns |
| public <S> boolean | corresponds(OrderedIterable<S> other, Predicate2<? super T, ? super S> predicate)
Overrides org. 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)
Overrides org. Implements org. Returns the index of the first element of the |
| public int | detectLastIndex(Predicate<? super T> predicate)
Overrides org. 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()
Overrides org. Implements org. Returns a new |
| public MutableList | distinct(HashingStrategy<? super T> hashingStrategy)
Overrides org. Implements org. Returns a new |
| public MutableList | drop(int count)
Overrides org. Implements org. Returns an iterable after skipping the first |
| public void | each(Procedure<? super T> procedure)
Overrides org. Implements org. The procedure is executed for each element in the iterable. |
| public boolean | equals(Object that)
Overrides org. Implements java. Compares the specified object with this list for equality. |
| public <V> MutableList | flatCollect(Function<? super T, ? extends Iterable<V>> function)
Overrides default org. Implements org.
|
| 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 fromIndex, int toIndex, Procedure<? super T> procedure)
Overrides org. 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)
Overrides org. Implements org. Iterates over the section of the iterable covered by the specified inclusive indexes. |
| public T | get(int index)
Implements java. Returns the element at the specified position in this list. |
| public T | getFirst()
Overrides org. 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 org. Overrides default org. Implements org. This default override exists because java.util.List added a default getLast() method in Java 21. |
| public int | hashCode()
Overrides org. Implements java. Returns the hash code value for this list. |
| public int | indexOf(Object item)
Overrides org. 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 <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 boolean | isEmpty()
Overrides org. Implements java. Returns |
| public Iterator | iterator()
Overrides org. Implements java. Returns an iterator over the elements in this list in proper sequence. |
| public int | lastIndexOf(Object item)
Overrides org. 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(int index)
Overrides org. Implements java. Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list. |
| 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 boolean | notEmpty()
Overrides default org. The English equivalent of !this.isEmpty() |
| 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 | remove(Object o)
Overrides org. Implements java. Removes the first occurrence of the specified element from this list, if it is present (optional operation). |
| public T | remove(int index)
Implements java. Removes the element at the specified position in this list (optional operation). |
| 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 | |
| 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. |
| public void | replaceAll(UnaryOperator<T> operator)
Overrides default java. Replaces each element of this list with the result of applying the operator to that element (optional operation). |
| 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 boolean | |
| 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 <P, R extends Collection | selectWith(Predicate2<? super T, ? super P> predicate, P parameter, R target)
Overrides org. Implements org. Similar to |
| public int | size()
Implements java. Returns the number of elements in this list. |
| public void | sort(Comparator<? super T> comparator)
Overrides default java. Sorts this list according to the order induced by the specified
|
| public MutableList | subList(int fromIndex, int toIndex)
Overrides org. Implements org. Returns a view of the portion of this list between the specified
|
| public MutableList | take(int count)
Overrides org. Implements org. Returns the first |
| public Object[] | toArray()
Overrides default org. Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
| public <E> E[] | toArray(E[] array)
Overrides default org. 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. |