public final class ListAdapter<T> extends AbstractListAdapter<T> implements Serializable
To create a new wrapper around an existing List instance, use the adapt(List) factory method.
| Modifier and Type | Method and Description |
|---|---|
static <E> org.eclipse.collections.api.list.MutableList<E> |
adapt(List<E> list) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
org.eclipse.collections.api.list.ParallelListIterable<T> |
asParallel(ExecutorService executorService,
int batchSize) |
org.eclipse.collections.api.list.MutableList<T> |
asSynchronized() |
org.eclipse.collections.api.list.MutableList<T> |
asUnmodifiable() |
org.eclipse.collections.api.list.MutableList<T> |
clone() |
<S> boolean |
corresponds(org.eclipse.collections.api.ordered.OrderedIterable<S> other,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super S> predicate) |
int |
count(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
T |
detect(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
T |
detectIfNone(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
org.eclipse.collections.api.block.function.Function0<? extends T> function) |
int |
detectIndex(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
int |
detectLastIndex(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
org.eclipse.collections.api.list.MutableList<T> |
distinct() |
org.eclipse.collections.api.list.MutableList<T> |
distinct(org.eclipse.collections.api.block.HashingStrategy<? super T> hashingStrategy) |
org.eclipse.collections.api.list.MutableList<T> |
drop(int count) |
org.eclipse.collections.api.list.MutableList<T> |
dropWhile(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
void |
each(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
void |
forEach(int fromIndex,
int toIndex,
org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
void |
forEach(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
void |
forEachWithIndex(int fromIndex,
int toIndex,
org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
void |
forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
<IV> IV |
injectInto(IV injectedValue,
org.eclipse.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function) |
org.eclipse.collections.api.list.MutableList<T> |
newEmpty()
Deprecated.
use
FastList.newList() instead (inlineable) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
org.eclipse.collections.api.partition.list.PartitionMutableList<T> |
partitionWhile(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
void |
reverseForEach(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
<S> org.eclipse.collections.api.list.MutableList<S> |
selectInstancesOf(Class<S> clazz) |
ListAdapter<T> |
sortThis() |
ListAdapter<T> |
sortThis(Comparator<? super T> comparator) |
org.eclipse.collections.api.list.MutableList<T> |
take(int count) |
org.eclipse.collections.api.list.MutableList<T> |
takeWhile(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
org.eclipse.collections.api.list.ImmutableList<T> |
toImmutable() |
org.eclipse.collections.api.stack.MutableStack<T> |
toStack() |
ListAdapter<T> |
with(T... elements) |
ListAdapter<T> |
with(T element) |
ListAdapter<T> |
with(T element1,
T element2) |
ListAdapter<T> |
with(T element1,
T element2,
T element3) |
ListAdapter<T> |
withAll(Iterable<? extends T> elements) |
ListAdapter<T> |
without(T element) |
ListAdapter<T> |
withoutAll(Iterable<? extends T> elements) |
add, addAll, asReversed, binarySearch, binarySearch, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, equals, flatCollect, get, groupBy, groupByEach, hashCode, indexOf, lastIndexOf, listIterator, listIterator, partition, partitionWith, reject, rejectWith, remove, reverseThis, select, selectWith, set, shuffleThis, shuffleThis, sortThisBy, sortThisByBoolean, sortThisByByte, sortThisByChar, sortThisByDouble, sortThisByFloat, sortThisByInt, sortThisByLong, sortThisByShort, subList, tap, toReversed, zip, zipWithIndexadd, addAll, addAllIterable, aggregateBy, aggregateInPlaceBy, allSatisfyWith, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, clear, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, countWith, detectWith, detectWithIfNone, flatCollect, forEachWith, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectIntoWith, isEmpty, iterator, makeString, makeString, makeString, 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, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexaddAllIterable, aggregateBy, aggregateInPlaceBy, groupByUniqueKey, injectIntoWith, removeAllIterable, removeIf, removeIfWith, retainAllIterable, selectAndRejectWithadd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArrayparallelStream, removeIf, streamallSatisfyWith, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, countWith, detectWith, detectWithIfNone, flatCollect, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, isEmpty, makeString, makeString, makeString, max, maxBy, min, minBy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toStringpublic static <E> org.eclipse.collections.api.list.MutableList<E> adapt(List<E> list)
public org.eclipse.collections.api.list.ImmutableList<T> toImmutable()
public org.eclipse.collections.api.list.MutableList<T> asUnmodifiable()
public org.eclipse.collections.api.list.MutableList<T> asSynchronized()
public org.eclipse.collections.api.list.MutableList<T> clone()
clone in interface org.eclipse.collections.api.list.MutableList<T>clone in class AbstractListAdapter<T>@Deprecated public org.eclipse.collections.api.list.MutableList<T> newEmpty()
FastList.newList() instead (inlineable)public void forEach(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
forEach in interface org.eclipse.collections.api.InternalIterable<T>forEach in class AbstractCollectionAdapter<T>public void each(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
each in interface org.eclipse.collections.api.RichIterable<T>each in class AbstractCollectionAdapter<T>public void reverseForEach(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
reverseForEach in interface org.eclipse.collections.api.ordered.ReversibleIterable<T>public void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface org.eclipse.collections.api.InternalIterable<T>forEachWithIndex in interface org.eclipse.collections.api.ordered.OrderedIterable<T>forEachWithIndex in class AbstractCollectionAdapter<T>public void forEachWithIndex(int fromIndex,
int toIndex,
org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface org.eclipse.collections.api.ordered.OrderedIterable<T>public T detect(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
detect in interface org.eclipse.collections.api.RichIterable<T>detect in class AbstractCollectionAdapter<T>public T detectIfNone(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, org.eclipse.collections.api.block.function.Function0<? extends T> function)
detectIfNone in interface org.eclipse.collections.api.RichIterable<T>detectIfNone in class AbstractCollectionAdapter<T>public int detectIndex(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
detectIndex in interface org.eclipse.collections.api.ordered.OrderedIterable<T>public int detectLastIndex(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
detectLastIndex in interface org.eclipse.collections.api.ordered.ReversibleIterable<T>public int count(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
count in interface org.eclipse.collections.api.RichIterable<T>count in class AbstractCollectionAdapter<T>public <S> boolean corresponds(org.eclipse.collections.api.ordered.OrderedIterable<S> other,
org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super S> predicate)
corresponds in interface org.eclipse.collections.api.ordered.OrderedIterable<T>public boolean anySatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
anySatisfy in interface org.eclipse.collections.api.RichIterable<T>anySatisfy in class AbstractCollectionAdapter<T>public boolean allSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
allSatisfy in interface org.eclipse.collections.api.RichIterable<T>allSatisfy in class AbstractCollectionAdapter<T>public boolean noneSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
noneSatisfy in interface org.eclipse.collections.api.RichIterable<T>noneSatisfy in class AbstractCollectionAdapter<T>public <IV> IV injectInto(IV injectedValue,
org.eclipse.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function)
injectInto in interface org.eclipse.collections.api.RichIterable<T>injectInto in class AbstractCollectionAdapter<T>public void forEach(int fromIndex,
int toIndex,
org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
forEach in interface org.eclipse.collections.api.ordered.OrderedIterable<T>public ListAdapter<T> sortThis(Comparator<? super T> comparator)
sortThis in interface org.eclipse.collections.api.list.MutableList<T>public ListAdapter<T> sortThis()
sortThis in interface org.eclipse.collections.api.list.MutableList<T>public ListAdapter<T> with(T element)
public ListAdapter<T> with(T element1, T element2)
public ListAdapter<T> with(T element1, T element2, T element3)
public ListAdapter<T> with(T... elements)
public ListAdapter<T> without(T element)
public ListAdapter<T> withAll(Iterable<? extends T> elements)
public ListAdapter<T> withoutAll(Iterable<? extends T> elements)
public <S> org.eclipse.collections.api.list.MutableList<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface org.eclipse.collections.api.collection.MutableCollection<T>selectInstancesOf in interface org.eclipse.collections.api.list.ListIterable<T>selectInstancesOf in interface org.eclipse.collections.api.list.MutableList<T>selectInstancesOf in interface org.eclipse.collections.api.ordered.OrderedIterable<T>selectInstancesOf in interface org.eclipse.collections.api.ordered.ReversibleIterable<T>selectInstancesOf in interface org.eclipse.collections.api.RichIterable<T>selectInstancesOf in class AbstractListAdapter<T>public org.eclipse.collections.api.list.MutableList<T> distinct()
distinct in interface org.eclipse.collections.api.list.ListIterable<T>distinct in interface org.eclipse.collections.api.list.MutableList<T>distinct in interface org.eclipse.collections.api.ordered.OrderedIterable<T>distinct in interface org.eclipse.collections.api.ordered.ReversibleIterable<T>public org.eclipse.collections.api.list.MutableList<T> distinct(org.eclipse.collections.api.block.HashingStrategy<? super T> hashingStrategy)
public org.eclipse.collections.api.list.MutableList<T> take(int count)
public org.eclipse.collections.api.list.MutableList<T> takeWhile(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
takeWhile in interface org.eclipse.collections.api.list.ListIterable<T>takeWhile in interface org.eclipse.collections.api.list.MutableList<T>takeWhile in interface org.eclipse.collections.api.ordered.OrderedIterable<T>takeWhile in interface org.eclipse.collections.api.ordered.ReversibleIterable<T>public org.eclipse.collections.api.list.MutableList<T> drop(int count)
public org.eclipse.collections.api.list.MutableList<T> dropWhile(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
dropWhile in interface org.eclipse.collections.api.list.ListIterable<T>dropWhile in interface org.eclipse.collections.api.list.MutableList<T>dropWhile in interface org.eclipse.collections.api.ordered.OrderedIterable<T>dropWhile in interface org.eclipse.collections.api.ordered.ReversibleIterable<T>public org.eclipse.collections.api.partition.list.PartitionMutableList<T> partitionWhile(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
partitionWhile in interface org.eclipse.collections.api.list.ListIterable<T>partitionWhile in interface org.eclipse.collections.api.list.MutableList<T>partitionWhile in interface org.eclipse.collections.api.ordered.OrderedIterable<T>partitionWhile in interface org.eclipse.collections.api.ordered.ReversibleIterable<T>public org.eclipse.collections.api.stack.MutableStack<T> toStack()
toStack in interface org.eclipse.collections.api.list.ListIterable<T>toStack in interface org.eclipse.collections.api.ordered.OrderedIterable<T>toStack in class AbstractListAdapter<T>public org.eclipse.collections.api.list.ParallelListIterable<T> asParallel(ExecutorService executorService, int batchSize)
asParallel in interface org.eclipse.collections.api.list.ListIterable<T>asParallel in class AbstractListAdapter<T>Copyright © 2004–2017. All rights reserved.