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(Predicate<? super E> predicate) |
<P> boolean |
allSatisfyWith(Predicate2<? super E,? super P> predicate,
P parameter) |
boolean |
anySatisfy(Predicate<? super E> predicate) |
<P> boolean |
anySatisfyWith(Predicate2<? super E,? super P> predicate,
P parameter) |
ParallelListIterable<E> |
asParallel(ExecutorService executorService,
int batchSize) |
void |
batchForEach(Procedure<? super E> procedure,
int sectionIndex,
int sectionCount) |
void |
clear() |
MutableList<E> |
clone() |
<V,R extends Collection<V>> |
collect(Function<? super E,? extends V> function,
R target) |
<P,A,R extends Collection<A>> |
collectWith(Function2<? super E,? super P,? extends A> function,
P parameter,
R target) |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> collection) |
int |
count(Predicate<? super E> predicate) |
<P> int |
countWith(Predicate2<? super E,? super P> predicate,
P parameter) |
void |
each(Procedure<? super E> procedure) |
<P> void |
forEachWith(Procedure2<? super E,? super P> procedure2,
P parameter) |
void |
forEachWithIndex(ObjectIntProcedure<? super E> objectIntProcedure) |
E |
get(int index) |
int |
getBatchCount(int batchSize) |
int |
indexOf(Object o) |
double |
injectInto(double injectedValue,
DoubleObjectToDoubleFunction<? super E> function) |
float |
injectInto(float injectedValue,
FloatObjectToFloatFunction<? super E> function) |
int |
injectInto(int injectedValue,
IntObjectToIntFunction<? super E> function) |
<IV> IV |
injectInto(IV injectedValue,
Function2<? super IV,? super E,? extends IV> function) |
long |
injectInto(long injectedValue,
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(Predicate<? super E> predicate) |
<P> boolean |
noneSatisfyWith(Predicate2<? super E,? super P> predicate,
P parameter) |
<R extends Collection<E>> |
reject(Predicate<? super E> predicate,
R target) |
<P,R extends Collection<E>> |
rejectWith(Predicate2<? super E,? super P> predicate,
P parameter,
R target) |
E |
remove(int index) |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> collection) |
void |
replaceAll(UnaryOperator<E> operator) |
void |
resetSize() |
boolean |
retainAll(Collection<?> collection) |
void |
reverseForEach(Procedure<? super E> procedure) |
void |
reverseForEachWithIndex(ObjectIntProcedure<? super E> procedure) |
CompositeFastList<E> |
reverseThis() |
<R extends Collection<E>> |
select(Predicate<? super E> predicate,
R target) |
<P,R extends Collection<E>> |
selectWith(Predicate2<? super E,? super P> predicate,
P parameter,
R target) |
E |
set(int index,
E element) |
int |
size() |
void |
sort(Comparator<? super E> comparator) |
Object[] |
toArray() |
Object[] |
toArray(Object[] array) |
appendString, appendString, asReversed, asSynchronized, asUnmodifiable, binarySearch, chunk, collectIf, corresponds, detect, detectIndex, detectLastIndex, detectOptional, detectWith, detectWithOptional, distinct, distinct, distinctBy, drop, dropWhile, equals, flatCollect, forEach, forEachWithIndex, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, hashCode, injectIntoWith, max, max, maxBy, min, min, minBy, newEmpty, partition, partitionWhile, partitionWith, removeIf, removeIfWith, selectAndRejectWith, selectInstancesOf, sortThisByBoolean, sortThisByByte, sortThisByChar, sortThisByDouble, sortThisByFloat, sortThisByInt, sortThisByLong, sortThisByShort, subList, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, take, takeWhile, tap, toSet, toSortedList, zip, zip, zipWithIndex, zipWithIndexaddAllIterable, countBy, countByEach, countByWith, reduce, removeAllIterable, retainAllIterable, sumByDouble, sumByFloat, sumByInt, sumByLongasLazy, containsAllArguments, containsAllIterable, detectWithIfNone, forEach, groupBy, groupByEach, groupByUniqueKey, into, toBag, toBiMap, toList, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toStringforEachcollect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, collectWithIndex, flatCollect, flatCollectWith, reject, rejectWith, rejectWithIndex, select, selectWith, selectWithIndex, shuffleThis, shuffleThis, sortThis, sortThis, sortThisBy, toImmutable, toImmutableList, toReversed, with, withAll, without, withoutAlladdAllIterable, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, removeAllIterable, retainAllIterable, sumByDouble, sumByFloat, sumByInt, sumByLongspliteratorparallelStream, removeIf, streambinarySearch, forEachInBothcollectWithIndex, getFirstOptional, getLastOptional, rejectWithIndex, selectWithIndex, toStackaggregateBy, appendString, asLazy, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countByEach, countByWith, detectIfNone, detectWithIfNone, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, getAny, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, makeString, makeString, makeString, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, notEmpty, reduce, reduceInPlace, reduceInPlace, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toStringpublic MutableList<E> clone()
clone in interface MutableList<E>clone in class AbstractMutableList<E>public int size()
size in interface Collection<E>size in interface List<E>size in interface RichIterable<E>size in interface BatchIterable<E>public void resetSize()
public void batchForEach(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 MutableList<E>public void each(Procedure<? super E> procedure)
each in interface RichIterable<E>each in class AbstractMutableList<E>public <IV> IV injectInto(IV injectedValue,
Function2<? super IV,? super E,? extends IV> function)
injectInto in interface RichIterable<E>injectInto in class AbstractMutableList<E>public int injectInto(int injectedValue,
IntObjectToIntFunction<? super E> function)
injectInto in interface RichIterable<E>injectInto in class AbstractMutableList<E>public float injectInto(float injectedValue,
FloatObjectToFloatFunction<? super E> function)
injectInto in interface RichIterable<E>injectInto in class AbstractMutableList<E>public long injectInto(long injectedValue,
LongObjectToLongFunction<? super E> function)
injectInto in interface RichIterable<E>injectInto in class AbstractMutableList<E>public double injectInto(double injectedValue,
DoubleObjectToDoubleFunction<? super E> function)
injectInto in interface RichIterable<E>injectInto in class AbstractRichIterable<E>public void forEachWithIndex(ObjectIntProcedure<? super E> objectIntProcedure)
forEachWithIndex in interface InternalIterable<E>forEachWithIndex in interface OrderedIterable<E>forEachWithIndex in class AbstractMutableList<E>public void reverseForEach(Procedure<? super E> procedure)
reverseForEach in interface ReversibleIterable<E>public void reverseForEachWithIndex(ObjectIntProcedure<? super E> procedure)
reverseForEachWithIndex in interface ReversibleIterable<E>public <P> void forEachWith(Procedure2<? super E,? super P> procedure2, P parameter)
forEachWith in interface InternalIterable<E>forEachWith in class AbstractMutableList<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface List<E>isEmpty in interface 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 RichIterable<E>contains in class AbstractMutableList<E>public Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>toArray in interface 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 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 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)
indexOf in interface List<E>indexOf in interface OrderedIterable<E>indexOf in class AbstractMutableList<E>public int lastIndexOf(Object o)
lastIndexOf in interface List<E>lastIndexOf in interface ListIterable<E>lastIndexOf in class AbstractMutableList<E>public void replaceAll(UnaryOperator<E> operator)
replaceAll in interface List<E>public void sort(Comparator<? super E> comparator)
public ListIterator<E> listIterator()
AFAIK list iterator is only commonly used in sorting.
listIterator in interface List<E>listIterator in interface 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 ListIterable<E>listIterator in class AbstractMutableList<E>public int count(Predicate<? super E> predicate)
count in interface RichIterable<E>count in class AbstractMutableList<E>public <P> int countWith(Predicate2<? super E,? super P> predicate, P parameter)
countWith in interface RichIterable<E>countWith in class AbstractMutableList<E>public boolean anySatisfy(Predicate<? super E> predicate)
anySatisfy in interface RichIterable<E>anySatisfy in class AbstractMutableList<E>public <R extends Collection<E>> R select(Predicate<? super E> predicate, R target)
select in interface RichIterable<E>select in class AbstractMutableList<E>public <P,R extends Collection<E>> R selectWith(Predicate2<? super E,? super P> predicate, P parameter, R target)
selectWith in interface RichIterable<E>selectWith in class AbstractMutableList<E>public <R extends Collection<E>> R reject(Predicate<? super E> predicate, R target)
reject in interface RichIterable<E>reject in class AbstractMutableList<E>public <P,R extends Collection<E>> R rejectWith(Predicate2<? super E,? super P> predicate, P parameter, R target)
rejectWith in interface RichIterable<E>rejectWith in class AbstractMutableList<E>public <V,R extends Collection<V>> R collect(Function<? super E,? extends V> function, R target)
collect in interface RichIterable<E>collect in class AbstractMutableList<E>public <P,A,R extends Collection<A>> R collectWith(Function2<? super E,? super P,? extends A> function, P parameter, R target)
collectWith in interface RichIterable<E>collectWith in class AbstractMutableList<E>public <P> boolean anySatisfyWith(Predicate2<? super E,? super P> predicate, P parameter)
anySatisfyWith in interface RichIterable<E>anySatisfyWith in class AbstractMutableList<E>public boolean allSatisfy(Predicate<? super E> predicate)
allSatisfy in interface RichIterable<E>allSatisfy in class AbstractMutableList<E>public <P> boolean allSatisfyWith(Predicate2<? super E,? super P> predicate, P parameter)
allSatisfyWith in interface RichIterable<E>allSatisfyWith in class AbstractMutableList<E>public boolean noneSatisfy(Predicate<? super E> predicate)
noneSatisfy in interface RichIterable<E>noneSatisfy in class AbstractMutableList<E>public <P> boolean noneSatisfyWith(Predicate2<? super E,? super P> predicate, P parameter)
noneSatisfyWith in interface RichIterable<E>noneSatisfyWith in class AbstractMutableList<E>public ParallelListIterable<E> asParallel(ExecutorService executorService, int batchSize)
asParallel in interface ListIterable<E>asParallel in class AbstractMutableList<E>Copyright © 2004–2022. All rights reserved.