Note
mutation operations (e.g. add and remove, sorting) will change the underlying lists - so be sure to only use a composite list where it will be the only reference to the sublists (for example, a composite list which contains multiple query results is OK as long as it is the only thing that references the lists)
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final FastList | |
| private static final Predicate2 | |
| private static final Procedure | |
| private static final long | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(E object)
Overrides org. Implements java. Appends the specified element to the end of this list (optional operation). |
| public void | add(int index, E element)
Implements java. Inserts the specified element at the specified position in this list (optional operation). |
| public boolean | addAll(Collection<? extends E> 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 E> collection)
Implements java. Inserts all of the elements in the specified collection into this list at the specified position (optional operation). |
| public void | |
| public boolean | allSatisfy(Predicate<? super E> 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 E, ? 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 E> 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 E, ? 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 ParallelListIterable | asParallel(ExecutorService executorService, int batchSize)
Overrides org. Implements org. Returns a parallel iterable of this ListIterable. |
| public void | batchForEach(Procedure<? super E> procedure, int sectionIndex, int sectionCount)
Implements org.
|
| public void | clear()
Overrides org. Implements java. Removes all of the elements from this list (optional operation). |
| public MutableList | clone()
Overrides org. Implements org. Creates and returns a copy of this object. |
| public <V, R extends Collection | collect(Function<? super E, ? extends V> function, R target)
Overrides org. Implements org. Same as |
| public <P, A, R extends Collection | collectWith(Function2<? super E, ? 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<?> collection)
Overrides org. Implements java. Returns |
| public int | count(Predicate<? super E> predicate)
Overrides org. Implements org. Return the total number of elements that answer true to the specified predicate. |
| public <P> int | countWith(Predicate2<? super E, ? super P> predicate, P parameter)
Overrides org. Implements org. Returns the total number of elements that evaluate to true for the specified predicate. |
| public void | each(Procedure<? super E> procedure)
Overrides org. Implements org. The procedure is executed for each element in the iterable. |
| private void | flattenLists()
convert multiple contained lists into one list and replace the contained lists with that list. |
| public <P> void | forEachWith(Procedure2<? super E, ? super P> procedure2, 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 E> 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 E | get(int index)
Implements java. Returns the element at the specified position in this list. |
| public int | getBatchCount(int batchSize)
Implements org.
|
| public int | indexOf(Object o)
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 E, ? 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 E> 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 E> 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 E> 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 double | injectInto(double injectedValue, DoubleObjectToDoubleFunction<? super E> function)
Overrides org. Implements org. Returns the final double result of evaluating function using each element of the iterable and the previous evaluation result as 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 o)
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 | Returns: a ListIterator for this, with internal state converted to one list if needed.Overrides org. Implements java. a list iterator is a problem for a composite list as going back in the order of the list is an issue, as are the other methods like set() and add() (and especially, remove). |
| public ListIterator | Returns: a ListIterator for this, with internal state converted to one list if needed.Overrides org. Implements java. a list iterator is a problem for a composite list as going back in the order of the list is an issue, as are the other methods like set() and add() (and especially, remove). |
| public boolean | noneSatisfy(Predicate<? super E> 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 E, ? 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. |
| private void | |
| public <R extends Collection | reject(Predicate<? super E> 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 E, ? super P> predicate, P parameter, R target)
Overrides org. Implements org. Similar to |
| public boolean | remove(Object object)
Overrides org. Implements java. Removes the first occurrence of the specified element from this list, if it is present (optional operation). |
| public E | 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 void | replaceAll(UnaryOperator<E> operator)
Overrides default java. Replaces each element of this list with the result of applying the operator to that element (optional operation). |
| public void | |
| 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 void | reverseForEach(Procedure<? super E> procedure)
Overrides default org. Evaluates the procedure for each element of the list iterating in reverse order. |
| public void | reverseForEachWithIndex(ObjectIntProcedure<? super E> procedure)
Overrides default org. Evaluates the procedure for each element and it's index in reverse order. |
| public CompositeFastList | reverseThis()
Overrides default org. Mutates this list by reversing its order and returns the current list as a result. |
| public <R extends Collection | select(Predicate<? super E> 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, R extends Collection | selectWith(Predicate2<? super E, ? super P> predicate, P parameter, R target)
Overrides org. Implements org. Similar to |
| public E | set(int index, E element)
Implements java. Replaces the element at the specified position in this list with the specified element (optional operation). |
| public int | size()
Implements org. Returns the number of elements in this list. |
| public void | sort(Comparator<? super E> comparator)
Overrides default java. Sorts this list according to the order induced by the specified
|
| 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 Object[] | toArray(Object[] 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. |