public final class CompositeFastList<E> extends AbstractMutableList<E> implements BatchIterable<E>, Serializable
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)
| Constructor and Description |
|---|
CompositeFastList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E object) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> collection) |
boolean |
addAll(int index,
Collection<? extends E> collection) |
void |
addComposited(Collection<? extends E> collection) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super E> predicate) |
<P> boolean |
allSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super E,? super P> predicate,
P parameter) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super E> predicate) |
<P> boolean |
anySatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super E,? super P> predicate,
P parameter) |
org.eclipse.collections.api.list.ParallelListIterable<E> |
asParallel(ExecutorService executorService,
int batchSize) |
void |
batchForEach(org.eclipse.collections.api.block.procedure.Procedure<? super E> procedure,
int sectionIndex,
int sectionCount) |
void |
clear() |
org.eclipse.collections.api.list.MutableList<E> |
clone() |
<V,R extends Collection<V>> |
collect(org.eclipse.collections.api.block.function.Function<? super E,? extends V> function,
R target) |
<P,A,R extends Collection<A>> |
collectWith(org.eclipse.collections.api.block.function.Function2<? super E,? super P,? extends A> function,
P parameter,
R target) |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> collection) |
int |
count(org.eclipse.collections.api.block.predicate.Predicate<? super E> predicate) |
<P> int |
countWith(org.eclipse.collections.api.block.predicate.Predicate2<? super E,? super P> predicate,
P parameter) |
void |
each(org.eclipse.collections.api.block.procedure.Procedure<? super E> procedure) |
<P> void |
forEachWith(org.eclipse.collections.api.block.procedure.Procedure2<? super E,? super P> procedure2,
P parameter) |
void |
forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super E> objectIntProcedure) |
E |
get(int index) |
int |
getBatchCount(int batchSize) |
int |
indexOf(Object o) |
double |
injectInto(double injectedValue,
org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super E> function) |
float |
injectInto(float injectedValue,
org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super E> function) |
int |
injectInto(int injectedValue,
org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction<? super E> function) |
<IV> IV |
injectInto(IV injectedValue,
org.eclipse.collections.api.block.function.Function2<? super IV,? super E,? extends IV> function) |
long |
injectInto(long injectedValue,
org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction<? super E> function) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator()
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).
|
ListIterator<E> |
listIterator(int index)
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).
|
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super E> predicate) |
<P> boolean |
noneSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super E,? super P> predicate,
P parameter) |
<R extends Collection<E>> |
reject(org.eclipse.collections.api.block.predicate.Predicate<? super E> predicate,
R target) |
<P,R extends Collection<E>> |
rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super E,? super P> predicate,
P parameter,
R target) |
E |
remove(int index) |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> collection) |
void |
resetSize() |
boolean |
retainAll(Collection<?> collection) |
void |
reverseForEach(org.eclipse.collections.api.block.procedure.Procedure<? super E> procedure) |
CompositeFastList<E> |
reverseThis() |
<R extends Collection<E>> |
select(org.eclipse.collections.api.block.predicate.Predicate<? super E> predicate,
R target) |
<P,R extends Collection<E>> |
selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super E,? super P> predicate,
P parameter,
R target) |
E |
set(int index,
E element) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] array) |
appendString, appendString, asReversed, asSynchronized, asUnmodifiable, binarySearch, binarySearch, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectIf, collectInt, collectLong, collectShort, collectWith, corresponds, detect, detectIfNone, detectIndex, detectLastIndex, detectWith, detectWithIfNone, distinct, distinct, drop, dropWhile, equals, flatCollect, flatCollect, forEach, forEachWithIndex, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, hashCode, injectIntoWith, max, max, maxBy, min, min, minBy, newEmpty, partition, partitionWhile, partitionWith, reject, rejectWith, removeIf, removeIfWith, select, selectAndRejectWith, selectInstancesOf, selectWith, shuffleThis, shuffleThis, sortThis, sortThis, sortThisBy, sortThisByBoolean, sortThisByByte, sortThisByChar, sortThisByDouble, sortThisByFloat, sortThisByInt, sortThisByLong, sortThisByShort, subList, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, take, takeWhile, tap, toImmutable, toList, toReversed, toSet, toSortedList, toSortedList, toStack, with, withAll, without, withoutAll, zip, zip, zipWithIndex, zipWithIndexaddAllIterable, aggregateBy, aggregateInPlaceBy, chunk, removeAllIterable, retainAllIterableappendString, asLazy, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAllArguments, containsAllIterable, forEach, groupBy, groupByEach, groupByUniqueKey, makeString, makeString, makeString, notEmpty, sumByDouble, sumByFloat, sumByInt, sumByLong, toBag, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toStringforEachaddAllIterable, aggregateBy, aggregateInPlaceBy, removeAllIterable, retainAllIterablereplaceAll, sort, spliteratorparallelStream, removeIf, streamappendString, asLazy, chunk, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAllArguments, containsAllIterable, groupBy, groupByEach, groupByUniqueKey, makeString, makeString, makeString, notEmpty, sumByDouble, sumByFloat, sumByInt, sumByLong, toBag, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toStringpublic org.eclipse.collections.api.list.MutableList<E> clone()
clone in interface org.eclipse.collections.api.list.MutableList<E>clone in class AbstractMutableList<E>public int size()
size in interface Collection<E>size in interface List<E>size in interface org.eclipse.collections.api.RichIterable<E>size in interface BatchIterable<E>public void resetSize()
public void batchForEach(org.eclipse.collections.api.block.procedure.Procedure<? super E> procedure, int sectionIndex, int sectionCount)
batchForEach in interface BatchIterable<E>public int getBatchCount(int batchSize)
getBatchCount in interface BatchIterable<E>public CompositeFastList<E> reverseThis()
reverseThis in interface org.eclipse.collections.api.list.MutableList<E>reverseThis in class AbstractMutableList<E>public void each(org.eclipse.collections.api.block.procedure.Procedure<? super E> procedure)
each in interface org.eclipse.collections.api.RichIterable<E>each in class AbstractMutableList<E>public <IV> IV injectInto(IV injectedValue,
org.eclipse.collections.api.block.function.Function2<? super IV,? super E,? extends IV> function)
injectInto in interface org.eclipse.collections.api.RichIterable<E>injectInto in class AbstractMutableList<E>public int injectInto(int injectedValue,
org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction<? super E> function)
injectInto in interface org.eclipse.collections.api.RichIterable<E>injectInto in class AbstractMutableList<E>public float injectInto(float injectedValue,
org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super E> function)
injectInto in interface org.eclipse.collections.api.RichIterable<E>injectInto in class AbstractMutableList<E>public long injectInto(long injectedValue,
org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction<? super E> function)
injectInto in interface org.eclipse.collections.api.RichIterable<E>injectInto in class AbstractMutableList<E>public double injectInto(double injectedValue,
org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super E> function)
injectInto in interface org.eclipse.collections.api.RichIterable<E>injectInto in class AbstractRichIterable<E>public void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super E> objectIntProcedure)
forEachWithIndex in interface org.eclipse.collections.api.InternalIterable<E>forEachWithIndex in interface org.eclipse.collections.api.ordered.OrderedIterable<E>forEachWithIndex in class AbstractMutableList<E>public void reverseForEach(org.eclipse.collections.api.block.procedure.Procedure<? super E> procedure)
reverseForEach in interface org.eclipse.collections.api.ordered.ReversibleIterable<E>reverseForEach in class AbstractMutableList<E>public <P> void forEachWith(org.eclipse.collections.api.block.procedure.Procedure2<? super E,? super P> procedure2, P parameter)
forEachWith in interface org.eclipse.collections.api.InternalIterable<E>forEachWith in class AbstractMutableList<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface List<E>isEmpty in interface org.eclipse.collections.api.RichIterable<E>isEmpty in class AbstractRichIterable<E>public boolean contains(Object object)
contains in interface Collection<E>contains in interface List<E>contains in interface org.eclipse.collections.api.RichIterable<E>contains in class AbstractMutableList<E>public Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>toArray in interface org.eclipse.collections.api.RichIterable<E>toArray in class AbstractRichIterable<E>public boolean add(E object)
add in interface Collection<E>add in interface List<E>add in class AbstractMutableCollection<E>public boolean remove(Object object)
remove in interface Collection<E>remove in interface List<E>remove in class AbstractMutableCollection<E>public boolean addAll(Collection<? extends E> collection)
addAll in interface Collection<E>addAll in interface List<E>addAll in class AbstractMutableCollection<E>public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<E>containsAll in interface List<E>containsAll in interface org.eclipse.collections.api.RichIterable<E>containsAll in class AbstractMutableList<E>public Object[] toArray(Object[] array)
toArray in interface Collection<E>toArray in interface List<E>toArray in interface org.eclipse.collections.api.RichIterable<E>toArray in class AbstractRichIterable<E>public void addComposited(Collection<? extends E> collection)
public boolean addAll(int index,
Collection<? extends E> collection)
public void clear()
public boolean retainAll(Collection<?> collection)
retainAll in interface Collection<E>retainAll in interface List<E>retainAll in class AbstractMutableList<E>public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<E>removeAll in interface List<E>removeAll in class AbstractMutableList<E>public E get(int index)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>lastIndexOf in interface org.eclipse.collections.api.list.ListIterable<E>lastIndexOf in class AbstractMutableList<E>public ListIterator<E> listIterator()
AFAIK list iterator is only commonly used in sorting.
listIterator in interface List<E>listIterator in interface org.eclipse.collections.api.list.ListIterable<E>listIterator in class AbstractMutableList<E>public ListIterator<E> listIterator(int index)
AFAIK list iterator is only commonly used in sorting.
listIterator in interface List<E>listIterator in interface org.eclipse.collections.api.list.ListIterable<E>listIterator in class AbstractMutableList<E>public int count(org.eclipse.collections.api.block.predicate.Predicate<? super E> predicate)
count in interface org.eclipse.collections.api.RichIterable<E>count in class AbstractMutableList<E>public <P> int countWith(org.eclipse.collections.api.block.predicate.Predicate2<? super E,? super P> predicate, P parameter)
countWith in interface org.eclipse.collections.api.RichIterable<E>countWith in class AbstractMutableList<E>public boolean anySatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super E> predicate)
anySatisfy in interface org.eclipse.collections.api.RichIterable<E>anySatisfy in class AbstractMutableList<E>public <R extends Collection<E>> R select(org.eclipse.collections.api.block.predicate.Predicate<? super E> predicate, R target)
select in interface org.eclipse.collections.api.RichIterable<E>select in class AbstractMutableList<E>public <P,R extends Collection<E>> R selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super E,? super P> predicate, P parameter, R target)
selectWith in interface org.eclipse.collections.api.RichIterable<E>selectWith in class AbstractMutableList<E>public <R extends Collection<E>> R reject(org.eclipse.collections.api.block.predicate.Predicate<? super E> predicate, R target)
reject in interface org.eclipse.collections.api.RichIterable<E>reject in class AbstractMutableList<E>public <P,R extends Collection<E>> R rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super E,? super P> predicate, P parameter, R target)
rejectWith in interface org.eclipse.collections.api.RichIterable<E>rejectWith in class AbstractMutableList<E>public <V,R extends Collection<V>> R collect(org.eclipse.collections.api.block.function.Function<? super E,? extends V> function, R target)
collect in interface org.eclipse.collections.api.RichIterable<E>collect in class AbstractMutableList<E>public <P,A,R extends Collection<A>> R collectWith(org.eclipse.collections.api.block.function.Function2<? super E,? super P,? extends A> function, P parameter, R target)
collectWith in interface org.eclipse.collections.api.RichIterable<E>collectWith in class AbstractMutableList<E>public <P> boolean anySatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super E,? super P> predicate, P parameter)
anySatisfyWith in interface org.eclipse.collections.api.RichIterable<E>anySatisfyWith in class AbstractMutableList<E>public boolean allSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super E> predicate)
allSatisfy in interface org.eclipse.collections.api.RichIterable<E>allSatisfy in class AbstractMutableList<E>public <P> boolean allSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super E,? super P> predicate, P parameter)
allSatisfyWith in interface org.eclipse.collections.api.RichIterable<E>allSatisfyWith in class AbstractMutableList<E>public boolean noneSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super E> predicate)
noneSatisfy in interface org.eclipse.collections.api.RichIterable<E>noneSatisfy in class AbstractMutableList<E>public <P> boolean noneSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super E,? super P> predicate, P parameter)
noneSatisfyWith in interface org.eclipse.collections.api.RichIterable<E>noneSatisfyWith in class AbstractMutableList<E>public org.eclipse.collections.api.list.ParallelListIterable<E> asParallel(ExecutorService executorService, int batchSize)
asParallel in interface org.eclipse.collections.api.list.ListIterable<E>asParallel in class AbstractMutableList<E>Copyright © 2004–2018. All rights reserved.