To create a new wrapper around an existing ArrayList instance, use the adapt(ArrayList) factory method. To
create a new empty wrapper, use the newList() or newList(int) factory methods.
| Modifier and Type | Field and Description |
|---|---|
| private final ArrayList | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <E> ArrayListAdapter | |
| 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 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 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 ArrayListAdapter | clone()
Overrides org. Implements org. Creates and returns a copy of this object. |
| public <V> ArrayListAdapter | collect(Function<? super T, ? extends V> function)
Overrides org. 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> ArrayListAdapter | collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function)
Overrides org. Overrides default org. 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 <P, A> ArrayListAdapter | collectWith(Function2<? super T, ? super P, ? extends A> function, P parameter)
Overrides org. Overrides default org. Implements org. Same as |
| 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 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 T | detectIfNone(Predicate<? super T> predicate, Function0<? extends T> function)
Overrides org. Overrides default org. Returns the first element of the iterable for which the predicate evaluates to 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 ArrayListAdapter | distinct()
Implements org. Returns a new |
| public ArrayListAdapter | distinct(HashingStrategy<? super T> hashingStrategy)
Implements org. Returns a new |
| public <V> ArrayListAdapter | distinctBy(Function<? super T, ? extends V> function)
Overrides org. 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)
Overrides org. Implements org. The procedure is executed for each element in the iterable. |
| public <V> ArrayListAdapter | flatCollect(Function<? super T, ? extends Iterable<V>> function)
Overrides org. Overrides default org. Implements org.
|
| public void | forEach(int fromIndex, int toIndex, Procedure<? super T> procedure)
Implements org. Iterates over the section of the iterable covered by the specified inclusive indexes. |
| 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. |
| protected ArrayList | getDelegate()
Implements abstract org.
|
| public <V> FastListMultimap | groupBy(Function<? super T, ? extends V> function)
Overrides org. 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)
Overrides org. Implements org. Similar to |
| 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 ArrayListAdapter | newEmpty()
Implements org. Creates a new empty mutable version of the same collection type. |
| public static <E> ArrayListAdapter | |
| public static <E> ArrayListAdapter | |
| 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 PartitionMutableList | partition(Predicate<? super T> predicate)
Overrides org. 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)
Overrides org. Implements org. Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| public ArrayListAdapter | reject(Predicate<? super T> predicate)
Overrides org. Overrides default org. Implements org. Returns a MutableCollection with all elements that evaluate to false for the specified predicate. |
| public <P> ArrayListAdapter | rejectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Overrides org. Overrides default org. Implements org. Returns a MutableCollection with all elements that evaluate to false for the specified predicate2 and parameter. |
| public void | reverseForEach(Procedure<? super T> procedure)
Overrides default org. Evaluates the procedure for each element of the list iterating in reverse order. |
| public void | reverseForEachWithIndex(ObjectIntProcedure<? super T> procedure)
Overrides default org. Evaluates the procedure for each element and it's index in reverse order. |
| public ArrayListAdapter | select(Predicate<? super T> predicate)
Overrides org. Overrides default org. Implements org. Returns a MutableCollection with all elements that evaluate to true for the specified predicate. |
| public <S> MutableList | selectInstancesOf(Class<S> clazz)
Overrides org. Implements org. Returns all elements of the source collection that are instances of the Class |
| public <P> ArrayListAdapter | selectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Overrides org. Overrides default org. Implements org. Returns a MutableCollection with all elements that evaluate to true for the specified predicate2 and parameter. |
| public void | sort(Comparator<? super T> comparator)
Overrides default java. Sorts this list according to the order induced by the specified
|
| public ArrayListAdapter | sortThis(Comparator<? super T> comparator)
Overrides default org. Sorts the internal data structure of this list and returns the list itself as a convenience. |
| public ArrayListAdapter | sortThis()
Overrides default org. Sorts the internal data structure of this list and returns the list itself as a convenience. |
| 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 ArrayListAdapter | with(T element)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to add elements to their existing elements. |
| public ArrayListAdapter | |
| public ArrayListAdapter | |
| public ArrayListAdapter | with(T... elements)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to add elements to their existing elements. |
| public ArrayListAdapter | withAll(Iterable<? extends T> elements)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to add multiple elements to their existing elements. |
| public ArrayListAdapter | without(T element)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to remove elements from their existing elements. |
| public ArrayListAdapter | withoutAll(Iterable<? extends T> elements)
Overrides default org. Implements org. This method allows mutable and fixed size collections the ability to remove multiple elements from their existing elements. |
| private <E> ArrayListAdapter | |
| public <S> MutableList | zip(Iterable<S> that)
Overrides org. Implements org. Returns a |
| public MutableList | zipWithIndex()
Overrides org. Implements org. Zips this |