public final class ArrayListAdapter<T> extends AbstractListAdapter<T> implements RandomAccess, Serializable
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 | Method and Description |
|---|---|
static <E> ArrayListAdapter<E> |
adapt(ArrayList<E> newDelegate) |
boolean |
allSatisfy(Predicate<? super T> predicate) |
boolean |
anySatisfy(Predicate<? super T> predicate) |
ReverseIterable<T> |
asReversed() |
MutableList<T> |
asSynchronized() |
MutableList<T> |
asUnmodifiable() |
ArrayListAdapter<T> |
clone() |
<V> ArrayListAdapter<V> |
collect(Function<? super T,? extends V> function) |
<V> ArrayListAdapter<V> |
collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<P,A> ArrayListAdapter<A> |
collectWith(Function2<? super T,? super P,? extends A> function,
P parameter) |
<S> boolean |
corresponds(OrderedIterable<S> other,
Predicate2<? super T,? super S> predicate) |
int |
count(Predicate<? super T> predicate) |
T |
detect(Predicate<? super T> predicate) |
T |
detectIfNone(Predicate<? super T> predicate,
Function0<? extends T> function) |
int |
detectIndex(Predicate<? super T> predicate) |
int |
detectLastIndex(Predicate<? super T> predicate) |
ArrayListAdapter<T> |
distinct() |
ArrayListAdapter<T> |
distinct(HashingStrategy<? super T> hashingStrategy) |
<V> ArrayListAdapter<T> |
distinctBy(Function<? super T,? extends V> function) |
MutableList<T> |
drop(int count) |
MutableList<T> |
dropWhile(Predicate<? super T> predicate) |
void |
each(Procedure<? super T> procedure) |
<V> ArrayListAdapter<V> |
flatCollect(Function<? super T,? extends Iterable<V>> function) |
void |
forEach(int fromIndex,
int toIndex,
Procedure<? super T> procedure) |
void |
forEachWithIndex(int fromIndex,
int toIndex,
ObjectIntProcedure<? super T> objectIntProcedure) |
void |
forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) |
<V> FastListMultimap<V,T> |
groupBy(Function<? super T,? extends V> function) |
<V> FastListMultimap<V,T> |
groupByEach(Function<? super T,? extends Iterable<V>> function) |
<IV> IV |
injectInto(IV injectedValue,
Function2<? super IV,? super T,? extends IV> function) |
ArrayListAdapter<T> |
newEmpty() |
static <E> ArrayListAdapter<E> |
newList() |
static <E> ArrayListAdapter<E> |
newList(int size) |
boolean |
noneSatisfy(Predicate<? super T> predicate) |
PartitionMutableList<T> |
partition(Predicate<? super T> predicate) |
PartitionMutableList<T> |
partitionWhile(Predicate<? super T> predicate) |
<P> PartitionMutableList<T> |
partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
ArrayListAdapter<T> |
reject(Predicate<? super T> predicate) |
<P> ArrayListAdapter<T> |
rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
void |
reverseForEach(Procedure<? super T> procedure) |
void |
reverseForEachWithIndex(ObjectIntProcedure<? super T> procedure) |
ArrayListAdapter<T> |
select(Predicate<? super T> predicate) |
<S> MutableList<S> |
selectInstancesOf(Class<S> clazz) |
<P> ArrayListAdapter<T> |
selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
void |
sort(Comparator<? super T> comparator) |
ArrayListAdapter<T> |
sortThis() |
ArrayListAdapter<T> |
sortThis(Comparator<? super T> comparator) |
MutableList<T> |
take(int count) |
MutableList<T> |
takeWhile(Predicate<? super T> predicate) |
ArrayListAdapter<T> |
with(T... elements) |
ArrayListAdapter<T> |
with(T element) |
ArrayListAdapter<T> |
with(T element1,
T element2) |
ArrayListAdapter<T> |
with(T element1,
T element2,
T element3) |
ArrayListAdapter<T> |
withAll(Iterable<? extends T> elements) |
ArrayListAdapter<T> |
without(T element) |
ArrayListAdapter<T> |
withoutAll(Iterable<? extends T> elements) |
<S> MutableList<Pair<T,S>> |
zip(Iterable<S> that) |
MutableList<Pair<T,Integer>> |
zipWithIndex() |
add, addAll, asParallel, equals, get, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, set, sortThisByBoolean, sortThisByByte, sortThisByChar, sortThisByDouble, sortThisByFloat, sortThisByInt, sortThisByLong, sortThisByShort, subList, tap, toStackadd, addAll, addAllIterable, allSatisfyWith, anySatisfyWith, appendString, asLazy, chunk, clear, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, countWith, detectOptional, detectWith, detectWithIfNone, detectWithOptional, flatCollect, forEachWith, getFirst, getLast, getOnly, groupBy, groupByEach, groupByUniqueKey, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectIntoWith, into, isEmpty, iterator, max, max, maxBy, min, min, minBy, noneSatisfyWith, notEmpty, reject, rejectWith, remove, removeAll, removeAllIterable, removeIf, removeIfWith, retainAll, retainAllIterable, select, selectAndRejectWith, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedList, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toString, zip, zipWithIndexcollectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, collectWithIndex, flatCollectWith, rejectWithIndex, reverseThis, selectWithIndex, shuffleThis, shuffleThis, sortThisBy, toImmutable, toImmutableList, toReversedaddAllIterable, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, removeAllIterable, removeIf, removeIfWith, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLongadd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streambinarySearch, binarySearch, forEachInBoth, getFirst, getLastcollectWithIndex, getFirstOptional, getLastOptional, rejectWithIndex, selectWithIndexaggregateBy, allSatisfyWith, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countByEach, countByWith, countWith, detectOptional, detectWith, detectWithIfNone, detectWithOptional, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, getAny, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, maxBy, maxByOptional, maxOptional, maxOptional, min, minBy, minByOptional, minOptional, minOptional, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toStringforEachWithpublic static <E> ArrayListAdapter<E> newList()
public static <E> ArrayListAdapter<E> newList(int size)
public static <E> ArrayListAdapter<E> adapt(ArrayList<E> newDelegate)
public MutableList<T> asUnmodifiable()
asUnmodifiable in interface MutableCollection<T>asUnmodifiable in interface MutableList<T>public MutableList<T> asSynchronized()
asSynchronized in interface MutableCollection<T>asSynchronized in interface MutableList<T>public ArrayListAdapter<T> clone()
clone in interface MutableList<T>clone in class AbstractListAdapter<T>public ArrayListAdapter<T> newEmpty()
newEmpty in interface MutableCollection<T>newEmpty in interface MutableList<T>public void each(Procedure<? super T> procedure)
each in interface RichIterable<T>each in class AbstractCollectionAdapter<T>public void reverseForEach(Procedure<? super T> procedure)
reverseForEach in interface ReversibleIterable<T>public void reverseForEachWithIndex(ObjectIntProcedure<? super T> procedure)
reverseForEachWithIndex in interface ReversibleIterable<T>public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface InternalIterable<T>forEachWithIndex in interface OrderedIterable<T>forEachWithIndex in class AbstractCollectionAdapter<T>public void forEachWithIndex(int fromIndex,
int toIndex,
ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface OrderedIterable<T>public T detect(Predicate<? super T> predicate)
detect in interface RichIterable<T>detect in class AbstractCollectionAdapter<T>public T detectIfNone(Predicate<? super T> predicate, Function0<? extends T> function)
detectIfNone in interface RichIterable<T>detectIfNone in class AbstractCollectionAdapter<T>public int count(Predicate<? super T> predicate)
count in interface RichIterable<T>count in class AbstractCollectionAdapter<T>public <S> boolean corresponds(OrderedIterable<S> other, Predicate2<? super T,? super S> predicate)
corresponds in interface OrderedIterable<T>public boolean anySatisfy(Predicate<? super T> predicate)
anySatisfy in interface RichIterable<T>anySatisfy in class AbstractCollectionAdapter<T>public boolean allSatisfy(Predicate<? super T> predicate)
allSatisfy in interface RichIterable<T>allSatisfy in class AbstractCollectionAdapter<T>public boolean noneSatisfy(Predicate<? super T> predicate)
noneSatisfy in interface RichIterable<T>noneSatisfy in class AbstractCollectionAdapter<T>public <IV> IV injectInto(IV injectedValue,
Function2<? super IV,? super T,? extends IV> function)
injectInto in interface RichIterable<T>injectInto in class AbstractCollectionAdapter<T>public void forEach(int fromIndex,
int toIndex,
Procedure<? super T> procedure)
forEach in interface OrderedIterable<T>public void sort(Comparator<? super T> comparator)
public ArrayListAdapter<T> sortThis(Comparator<? super T> comparator)
sortThis in interface MutableList<T>public ArrayListAdapter<T> sortThis()
sortThis in interface MutableList<T>public ArrayListAdapter<T> with(T element)
with in interface MutableCollection<T>with in interface MutableList<T>public ArrayListAdapter<T> with(T element1, T element2)
public ArrayListAdapter<T> with(T element1, T element2, T element3)
public ArrayListAdapter<T> with(T... elements)
public ArrayListAdapter<T> without(T element)
without in interface MutableCollection<T>without in interface MutableList<T>public ArrayListAdapter<T> withAll(Iterable<? extends T> elements)
withAll in interface MutableCollection<T>withAll in interface MutableList<T>public ArrayListAdapter<T> withoutAll(Iterable<? extends T> elements)
withoutAll in interface MutableCollection<T>withoutAll in interface MutableList<T>public ArrayListAdapter<T> select(Predicate<? super T> predicate)
select in interface MutableCollection<T>select in interface ListIterable<T>select in interface MutableList<T>select in interface OrderedIterable<T>select in interface ReversibleIterable<T>select in interface RichIterable<T>select in class AbstractListAdapter<T>public ArrayListAdapter<T> reject(Predicate<? super T> predicate)
reject in interface MutableCollection<T>reject in interface ListIterable<T>reject in interface MutableList<T>reject in interface OrderedIterable<T>reject in interface ReversibleIterable<T>reject in interface RichIterable<T>reject in class AbstractListAdapter<T>public PartitionMutableList<T> partition(Predicate<? super T> predicate)
partition in interface MutableCollection<T>partition in interface ListIterable<T>partition in interface MutableList<T>partition in interface OrderedIterable<T>partition in interface ReversibleIterable<T>partition in interface RichIterable<T>partition in class AbstractListAdapter<T>public <P> PartitionMutableList<T> partitionWith(Predicate2<? super T,? super P> predicate, P parameter)
partitionWith in interface MutableCollection<T>partitionWith in interface ListIterable<T>partitionWith in interface MutableList<T>partitionWith in interface OrderedIterable<T>partitionWith in interface ReversibleIterable<T>partitionWith in interface RichIterable<T>partitionWith in class AbstractListAdapter<T>public <S> MutableList<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface MutableCollection<T>selectInstancesOf in interface ListIterable<T>selectInstancesOf in interface MutableList<T>selectInstancesOf in interface OrderedIterable<T>selectInstancesOf in interface ReversibleIterable<T>selectInstancesOf in interface RichIterable<T>selectInstancesOf in class AbstractListAdapter<T>public <V> ArrayListAdapter<V> collect(Function<? super T,? extends V> function)
collect in interface MutableCollection<T>collect in interface ListIterable<T>collect in interface MutableList<T>collect in interface OrderedIterable<T>collect in interface ReversibleIterable<T>collect in interface RichIterable<T>collect in class AbstractListAdapter<T>public <V> ArrayListAdapter<V> flatCollect(Function<? super T,? extends Iterable<V>> function)
flatCollect in interface MutableCollection<T>flatCollect in interface ListIterable<T>flatCollect in interface MutableList<T>flatCollect in interface OrderedIterable<T>flatCollect in interface ReversibleIterable<T>flatCollect in interface RichIterable<T>flatCollect in class AbstractListAdapter<T>public <V> ArrayListAdapter<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
collectIf in interface MutableCollection<T>collectIf in interface ListIterable<T>collectIf in interface MutableList<T>collectIf in interface OrderedIterable<T>collectIf in interface ReversibleIterable<T>collectIf in interface RichIterable<T>collectIf in class AbstractListAdapter<T>public int detectIndex(Predicate<? super T> predicate)
detectIndex in interface OrderedIterable<T>public int detectLastIndex(Predicate<? super T> predicate)
detectLastIndex in interface ReversibleIterable<T>public <V> FastListMultimap<V,T> groupBy(Function<? super T,? extends V> function)
groupBy in interface MutableCollection<T>groupBy in interface ListIterable<T>groupBy in interface MutableList<T>groupBy in interface OrderedIterable<T>groupBy in interface ReversibleIterable<T>groupBy in interface RichIterable<T>groupBy in class AbstractListAdapter<T>public <V> FastListMultimap<V,T> groupByEach(Function<? super T,? extends Iterable<V>> function)
groupByEach in interface MutableCollection<T>groupByEach in interface ListIterable<T>groupByEach in interface MutableList<T>groupByEach in interface OrderedIterable<T>groupByEach in interface ReversibleIterable<T>groupByEach in interface RichIterable<T>groupByEach in class AbstractListAdapter<T>public <P> ArrayListAdapter<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
selectWith in interface MutableCollection<T>selectWith in interface ListIterable<T>selectWith in interface MutableList<T>selectWith in interface OrderedIterable<T>selectWith in interface ReversibleIterable<T>selectWith in interface RichIterable<T>selectWith in class AbstractListAdapter<T>public <P> ArrayListAdapter<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
rejectWith in interface MutableCollection<T>rejectWith in interface ListIterable<T>rejectWith in interface MutableList<T>rejectWith in interface OrderedIterable<T>rejectWith in interface ReversibleIterable<T>rejectWith in interface RichIterable<T>rejectWith in class AbstractListAdapter<T>public <P,A> ArrayListAdapter<A> collectWith(Function2<? super T,? super P,? extends A> function, P parameter)
collectWith in interface MutableCollection<T>collectWith in interface ListIterable<T>collectWith in interface MutableList<T>collectWith in interface OrderedIterable<T>collectWith in interface ReversibleIterable<T>collectWith in interface RichIterable<T>collectWith in class AbstractListAdapter<T>public ArrayListAdapter<T> distinct()
distinct in interface ListIterable<T>distinct in interface MutableList<T>distinct in interface OrderedIterable<T>distinct in interface ReversibleIterable<T>public ArrayListAdapter<T> distinct(HashingStrategy<? super T> hashingStrategy)
distinct in interface ListIterable<T>distinct in interface MutableList<T>public <V> ArrayListAdapter<T> distinctBy(Function<? super T,? extends V> function)
distinctBy in interface ListIterable<T>distinctBy in interface MutableList<T>distinctBy in class AbstractListAdapter<T>public <S> MutableList<Pair<T,S>> zip(Iterable<S> that)
zip in interface MutableCollection<T>zip in interface ListIterable<T>zip in interface MutableList<T>zip in interface OrderedIterable<T>zip in interface ReversibleIterable<T>zip in interface RichIterable<T>zip in class AbstractListAdapter<T>public MutableList<Pair<T,Integer>> zipWithIndex()
zipWithIndex in interface MutableCollection<T>zipWithIndex in interface ListIterable<T>zipWithIndex in interface MutableList<T>zipWithIndex in interface OrderedIterable<T>zipWithIndex in interface ReversibleIterable<T>zipWithIndex in interface RichIterable<T>zipWithIndex in class AbstractListAdapter<T>public MutableList<T> take(int count)
take in interface ListIterable<T>take in interface MutableList<T>take in interface ReversibleIterable<T>public MutableList<T> takeWhile(Predicate<? super T> predicate)
takeWhile in interface ListIterable<T>takeWhile in interface MutableList<T>takeWhile in interface OrderedIterable<T>takeWhile in interface ReversibleIterable<T>public MutableList<T> drop(int count)
drop in interface ListIterable<T>drop in interface MutableList<T>drop in interface ReversibleIterable<T>public MutableList<T> dropWhile(Predicate<? super T> predicate)
dropWhile in interface ListIterable<T>dropWhile in interface MutableList<T>dropWhile in interface OrderedIterable<T>dropWhile in interface ReversibleIterable<T>public PartitionMutableList<T> partitionWhile(Predicate<? super T> predicate)
partitionWhile in interface ListIterable<T>partitionWhile in interface MutableList<T>partitionWhile in interface OrderedIterable<T>partitionWhile in interface ReversibleIterable<T>public ReverseIterable<T> asReversed()
asReversed in interface ReversibleIterable<T>asReversed in class AbstractListAdapter<T>Copyright © 2004–2022. All rights reserved.