public class FastList<T> extends AbstractMutableList<T> implements Externalizable, RandomAccess, BatchIterable<T>
An empty FastList created by calling the default constructor starts with a shared reference to a static empty array (DEFAULT_SIZED_EMPTY_ARRAY). This makes empty FastLists very memory efficient. The first call to add will lazily create an array of size 10.
An empty FastList created by calling the pre-size constructor with a value of 0 (new FastList(0)) starts with a shared reference to a static empty array (ZERO_SIZED_ARRAY). This makes FastLists presized to 0 very memory efficient as well. The first call to add will lazily create an array of size 1.
| Constructor and Description |
|---|
FastList() |
FastList(Collection<? extends T> source) |
FastList(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T newItem) |
boolean |
addAll(Collection<? extends T> source) |
boolean |
addAll(int index,
Collection<? extends T> source) |
boolean |
allSatisfy(Predicate<? super T> predicate) |
<P> boolean |
allSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
anySatisfy(Predicate<? super T> predicate) |
<P> boolean |
anySatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
void |
batchForEach(Procedure<? super T> procedure,
int sectionIndex,
int sectionCount) |
void |
clear() |
FastList<T> |
clone() |
<V> FastList<V> |
collect(Function<? super T,? extends V> function) |
<V,R extends Collection<V>> |
collect(Function<? super T,? extends V> function,
R target) |
<R extends MutableBooleanCollection> |
collectBoolean(BooleanFunction<? super T> booleanFunction,
R target) |
<R extends MutableByteCollection> |
collectByte(ByteFunction<? super T> byteFunction,
R target) |
<R extends MutableCharCollection> |
collectChar(CharFunction<? super T> charFunction,
R target) |
<R extends MutableDoubleCollection> |
collectDouble(DoubleFunction<? super T> doubleFunction,
R target) |
<R extends MutableFloatCollection> |
collectFloat(FloatFunction<? super T> floatFunction,
R target) |
<V> FastList<V> |
collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V,R extends Collection<V>> |
collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function,
R target) |
<R extends MutableIntCollection> |
collectInt(IntFunction<? super T> intFunction,
R target) |
<R extends MutableLongCollection> |
collectLong(LongFunction<? super T> longFunction,
R target) |
<R extends MutableShortCollection> |
collectShort(ShortFunction<? super T> shortFunction,
R target) |
<P,V> FastList<V> |
collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V,R extends Collection<V>> |
collectWith(Function2<? super T,? super P,? extends V> function,
P parameter,
R target) |
<V> MutableList<V> |
collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function) |
<V,R extends Collection<V>> |
collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function,
R target) |
boolean |
containsAll(Collection<?> source) |
boolean |
containsAllArguments(Object... source) |
<S> boolean |
corresponds(OrderedIterable<S> other,
Predicate2<? super T,? super S> predicate) |
int |
count(Predicate<? super T> predicate) |
<P> int |
countWith(Predicate2<? super T,? super P> predicate,
P parameter) |
T |
detect(Predicate<? super T> predicate) |
int |
detectIndex(Predicate<? super T> predicate) |
int |
detectLastIndex(Predicate<? super T> predicate) |
Optional<T> |
detectOptional(Predicate<? super T> predicate) |
<P> T |
detectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> Optional<T> |
detectWithOptional(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableList<T> |
distinct() |
MutableList<T> |
distinct(HashingStrategy<? super T> hashingStrategy) |
MutableList<T> |
drop(int count) |
MutableList<T> |
dropWhile(Predicate<? super T> predicate) |
void |
each(Procedure<? super T> procedure) |
void |
ensureCapacity(int minCapacity) |
boolean |
equals(Object that) |
boolean |
fastListEquals(FastList<?> that) |
<V> FastList<V> |
flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V,R extends Collection<V>> |
flatCollect(Function<? super T,? extends Iterable<V>> function,
R target) |
<R extends MutableBooleanCollection> |
flatCollectBoolean(Function<? super T,? extends BooleanIterable> function,
R target) |
<R extends MutableByteCollection> |
flatCollectByte(Function<? super T,? extends ByteIterable> function,
R target) |
<R extends MutableCharCollection> |
flatCollectChar(Function<? super T,? extends CharIterable> function,
R target) |
<R extends MutableDoubleCollection> |
flatCollectDouble(Function<? super T,? extends DoubleIterable> function,
R target) |
<R extends MutableFloatCollection> |
flatCollectFloat(Function<? super T,? extends FloatIterable> function,
R target) |
<R extends MutableIntCollection> |
flatCollectInt(Function<? super T,? extends IntIterable> function,
R target) |
<R extends MutableLongCollection> |
flatCollectLong(Function<? super T,? extends LongIterable> function,
R target) |
<R extends MutableShortCollection> |
flatCollectShort(Function<? super T,? extends ShortIterable> function,
R target) |
void |
forEach(int from,
int to,
Procedure<? super T> procedure) |
void |
forEachIf(Predicate<? super T> predicate,
Procedure<? super T> procedure) |
<P> void |
forEachWith(Procedure2<? super T,? super P> procedure,
P parameter) |
void |
forEachWithIndex(int from,
int to,
ObjectIntProcedure<? super T> objectIntProcedure) |
void |
forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) |
T |
get(int index) |
int |
getBatchCount(int batchSize) |
T |
getFirst() |
T |
getLast() |
<V> FastListMultimap<V,T> |
groupBy(Function<? super T,? extends V> function) |
<V,R extends MutableMultimap<V,T>> |
groupBy(Function<? super T,? extends V> function,
R target) |
<V> FastListMultimap<V,T> |
groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V,R extends MutableMultimap<V,T>> |
groupByEach(Function<? super T,? extends Iterable<V>> function,
R target) |
<K> MutableMap<K,T> |
groupByUniqueKey(Function<? super T,? extends K> function) |
<K,R extends MutableMapIterable<K,T>> |
groupByUniqueKey(Function<? super T,? extends K> function,
R target) |
int |
hashCode() |
int |
indexOf(Object object) |
double |
injectInto(double injectedValue,
DoubleObjectToDoubleFunction<? super T> function) |
float |
injectInto(float injectedValue,
FloatObjectToFloatFunction<? super T> function) |
int |
injectInto(int injectedValue,
IntObjectToIntFunction<? super T> function) |
<IV> IV |
injectInto(IV injectedValue,
Function2<? super IV,? super T,? extends IV> function) |
long |
injectInto(long injectedValue,
LongObjectToLongFunction<? super T> function) |
<IV,P> IV |
injectIntoWith(IV injectValue,
Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter) |
int |
lastIndexOf(Object object) |
T |
max() |
T |
max(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
maxBy(Function<? super T,? extends V> function) |
T |
min() |
T |
min(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
minBy(Function<? super T,? extends V> function) |
static <E> FastList<E> |
newList() |
static <E> FastList<E> |
newList(int initialCapacity) |
static <E> FastList<E> |
newList(Iterable<? extends E> source) |
static <E> FastList<E> |
newListWith(E... elements)
Creates a new list using the passed
elements argument as the backing store. |
static <E> FastList<E> |
newWithNValues(int size,
Function0<? extends E> factory)
Creates a new FastList pre-sized to the specified size filled with default values generated by the specified function.
|
boolean |
noneSatisfy(Predicate<? super T> predicate) |
<P> boolean |
noneSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
PartitionFastList<T> |
partition(Predicate<? super T> predicate) |
PartitionMutableList<T> |
partitionWhile(Predicate<? super T> predicate) |
<P> PartitionFastList<T> |
partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
void |
readExternal(ObjectInput in) |
Optional<T> |
reduce(BinaryOperator<T> accumulator) |
<R,A> R |
reduceInPlace(Collector<? super T,A,R> collector) |
<R> R |
reduceInPlace(Supplier<R> supplier,
BiConsumer<R,? super T> accumulator) |
FastList<T> |
reject(Predicate<? super T> predicate) |
<R extends Collection<T>> |
reject(Predicate<? super T> predicate,
R target) |
<P> FastList<T> |
rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P,R extends Collection<T>> |
rejectWith(Predicate2<? super T,? super P> predicate,
P parameter,
R target) |
MutableList<T> |
rejectWithIndex(ObjectIntPredicate<? super T> predicate) |
<R extends Collection<T>> |
rejectWithIndex(ObjectIntPredicate<? super T> predicate,
R target) |
T |
remove(int index) |
boolean |
remove(Object object) |
boolean |
removeIf(Predicate<? super T> predicate) |
<P> boolean |
removeIfWith(Predicate2<? super T,? super P> predicate,
P parameter) |
void |
replaceAll(UnaryOperator<T> operator) |
FastList<T> |
reverseThis() |
FastList<T> |
select(Predicate<? super T> predicate) |
<R extends Collection<T>> |
select(Predicate<? super T> predicate,
R target) |
<P> Twin<MutableList<T>> |
selectAndRejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<S> FastList<S> |
selectInstancesOf(Class<S> clazz) |
<P> FastList<T> |
selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P,R extends Collection<T>> |
selectWith(Predicate2<? super T,? super P> predicate,
P parameter,
R target) |
MutableList<T> |
selectWithIndex(ObjectIntPredicate<? super T> predicate) |
<R extends Collection<T>> |
selectWithIndex(ObjectIntPredicate<? super T> predicate,
R target) |
T |
set(int index,
T element) |
int |
size() |
void |
sort(Comparator<? super T> comparator)
Overrides default method from List.
|
FastList<T> |
sortThis() |
FastList<T> |
sortThis(Comparator<? super T> comparator) |
Spliterator<T> |
spliterator() |
<V> MutableObjectDoubleMap<V> |
sumByDouble(Function<? super T,? extends V> groupBy,
DoubleFunction<? super T> function) |
<V> MutableObjectDoubleMap<V> |
sumByFloat(Function<? super T,? extends V> groupBy,
FloatFunction<? super T> function) |
<V> MutableObjectLongMap<V> |
sumByInt(Function<? super T,? extends V> groupBy,
IntFunction<? super T> function) |
<V> MutableObjectLongMap<V> |
sumByLong(Function<? super T,? extends V> groupBy,
LongFunction<? super T> function) |
DoubleSummaryStatistics |
summarizeDouble(DoubleFunction<? super T> function) |
DoubleSummaryStatistics |
summarizeFloat(FloatFunction<? super T> function) |
IntSummaryStatistics |
summarizeInt(IntFunction<? super T> function) |
LongSummaryStatistics |
summarizeLong(LongFunction<? super T> function) |
double |
sumOfDouble(DoubleFunction<? super T> function) |
double |
sumOfFloat(FloatFunction<? super T> function) |
long |
sumOfInt(IntFunction<? super T> function) |
long |
sumOfLong(LongFunction<? super T> function) |
MutableList<T> |
take(int count) |
MutableList<T> |
takeWhile(Predicate<? super T> predicate) |
Object[] |
toArray() |
<E> E[] |
toArray(E[] array) |
<E> E[] |
toArray(E[] array,
int sourceFromIndex,
int sourceToIndex,
int destinationIndex) |
<E> E[] |
toArray(int sourceFromIndex,
int sourceToIndex) |
FastList<T> |
toList() |
FastList<T> |
toSortedList() |
FastList<T> |
toSortedList(Comparator<? super T> comparator) |
T[] |
toTypedArray(Class<T> clazz) |
void |
trimToSize() |
boolean |
trimToSizeIfGreaterThanPercent(double loadFactor)
Express load factor as 0.25 to trim a collection with more than 25% excess capacity
|
FastList<T> |
with(T... elements) |
FastList<T> |
with(T element1,
T element2) |
FastList<T> |
with(T element1,
T element2,
T element3) |
FastList<T> |
withArrayCopy(T[] elements,
int begin,
int length) |
static <E> FastList<E> |
wrapCopy(E... array) |
void |
writeExternal(ObjectOutput out) |
appendString, asParallel, asReversed, asSynchronized, asUnmodifiable, binarySearch, chunk, contains, distinctBy, iterator, listIterator, listIterator, newEmpty, removeAll, retainAll, sortThisByBoolean, sortThisByByte, sortThisByChar, sortThisByDouble, sortThisByFloat, sortThisByInt, sortThisByLong, sortThisByShort, subList, tap, toSet, zip, zip, zipWithIndex, zipWithIndexaddAllIterable, countBy, countByEach, countByWith, removeAllIterable, retainAllIterableasLazy, containsAllIterable, detectWithIfNone, forEach, into, isEmpty, toBag, toBiMap, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toStringforEachcollectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollectWith, shuffleThis, shuffleThis, sortThisBy, toImmutable, toImmutableList, toReversed, with, withAll, without, withoutAlladdAllIterable, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, removeAllIterable, retainAllIterableparallelStream, removeIf, streambinarySearch, forEachInBothreverseForEach, reverseForEachWithIndexgetFirstOptional, getLastOptional, toStackaggregateBy, appendString, asLazy, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countByEach, countByWith, detectIfNone, detectWithIfNone, flatCollectWith, getAny, getOnly, groupByAndCollect, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, notEmpty, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toMap, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toStringpublic FastList()
public FastList(int initialCapacity)
public FastList(Collection<? extends T> source)
public static <E> FastList<E> newList()
public static <E> FastList<E> wrapCopy(E... array)
public static <E> FastList<E> newList(int initialCapacity)
public static <E> FastList<E> newListWith(E... elements)
elements argument as the backing store.
!!! WARNING: This method uses the passed in array, so can be very unsafe if the original array is held onto anywhere else. !!!
public static <E> FastList<E> newWithNValues(int size, Function0<? extends E> factory)
public FastList<T> clone()
clone in interface MutableList<T>clone in class AbstractMutableList<T>public void clear()
public void forEach(int from,
int to,
Procedure<? super T> procedure)
forEach in interface OrderedIterable<T>forEach in class AbstractMutableList<T>public void forEachWithIndex(int from,
int to,
ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface OrderedIterable<T>forEachWithIndex in class AbstractMutableList<T>public void batchForEach(Procedure<? super T> procedure, int sectionIndex, int sectionCount)
batchForEach in interface BatchIterable<T>public int getBatchCount(int batchSize)
getBatchCount in interface BatchIterable<T>public <E> E[] toArray(E[] array,
int sourceFromIndex,
int sourceToIndex,
int destinationIndex)
public <E> E[] toArray(int sourceFromIndex,
int sourceToIndex)
public void sort(Comparator<? super T> comparator)
public FastList<T> sortThis(Comparator<? super T> comparator)
sortThis in interface MutableList<T>public FastList<T> sortThis()
sortThis in interface MutableList<T>public FastList<T> reverseThis()
reverseThis in interface MutableList<T>public boolean addAll(Collection<? extends T> source)
addAll in interface Collection<T>addAll in interface List<T>addAll in class AbstractMutableCollection<T>public boolean containsAll(Collection<?> source)
containsAll in interface Collection<T>containsAll in interface List<T>containsAll in interface RichIterable<T>containsAll in class AbstractMutableList<T>public boolean containsAllArguments(Object... source)
containsAllArguments in interface RichIterable<T>containsAllArguments in class AbstractRichIterable<T>public <E> E[] toArray(E[] array)
toArray in interface Collection<T>toArray in interface List<T>toArray in interface RichIterable<T>toArray in class AbstractRichIterable<T>public Object[] toArray()
toArray in interface Collection<T>toArray in interface List<T>toArray in interface RichIterable<T>toArray in class AbstractRichIterable<T>public int indexOf(Object object)
indexOf in interface List<T>indexOf in interface OrderedIterable<T>indexOf in class AbstractMutableList<T>public int lastIndexOf(Object object)
lastIndexOf in interface List<T>lastIndexOf in interface ListIterable<T>lastIndexOf in class AbstractMutableList<T>public Spliterator<T> spliterator()
spliterator in interface Iterable<T>spliterator in interface Collection<T>spliterator in interface List<T>public void trimToSize()
public boolean trimToSizeIfGreaterThanPercent(double loadFactor)
public void ensureCapacity(int minCapacity)
public T getFirst()
getFirst in interface ListIterable<T>getFirst in interface OrderedIterable<T>getFirst in interface RichIterable<T>getFirst in class AbstractMutableList<T>public T getLast()
getLast in interface ListIterable<T>getLast in interface OrderedIterable<T>getLast in interface RichIterable<T>getLast in class AbstractMutableList<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 AbstractMutableList<T>public <V,R extends MutableMultimap<V,T>> R groupBy(Function<? super T,? extends V> function, R target)
groupBy in interface RichIterable<T>groupBy in class AbstractRichIterable<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 AbstractMutableList<T>public <V,R extends MutableMultimap<V,T>> R groupByEach(Function<? super T,? extends Iterable<V>> function, R target)
groupByEach in interface RichIterable<T>groupByEach in class AbstractRichIterable<T>public <K> MutableMap<K,T> groupByUniqueKey(Function<? super T,? extends K> function)
groupByUniqueKey in interface MutableCollection<T>groupByUniqueKey in interface RichIterable<T>groupByUniqueKey in class AbstractMutableList<T>public <K,R extends MutableMapIterable<K,T>> R groupByUniqueKey(Function<? super T,? extends K> function, R target)
groupByUniqueKey in interface RichIterable<T>groupByUniqueKey in class AbstractRichIterable<T>public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface RichIterable<T>appendString in class AbstractMutableList<T>public MutableList<T> take(int count)
take in interface ListIterable<T>take in interface MutableList<T>take in interface ReversibleIterable<T>take in class AbstractMutableList<T>public MutableList<T> drop(int count)
drop in interface ListIterable<T>drop in interface MutableList<T>drop in interface ReversibleIterable<T>drop in class AbstractMutableList<T>public PartitionFastList<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 AbstractMutableList<T>public <P> PartitionFastList<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 AbstractMutableList<T>public void each(Procedure<? super T> procedure)
each in interface RichIterable<T>each in class AbstractMutableList<T>public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface InternalIterable<T>forEachWithIndex in interface OrderedIterable<T>forEachWithIndex in class AbstractMutableList<T>public <P> void forEachWith(Procedure2<? super T,? super P> procedure, P parameter)
forEachWith in interface InternalIterable<T>forEachWith in class AbstractMutableList<T>public FastList<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>public <R extends Collection<T>> R select(Predicate<? super T> predicate, R target)
select in interface RichIterable<T>select in class AbstractMutableList<T>public <P> FastList<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>public <P,R extends Collection<T>> R selectWith(Predicate2<? super T,? super P> predicate, P parameter, R target)
selectWith in interface RichIterable<T>selectWith in class AbstractMutableList<T>public FastList<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>public <R extends Collection<T>> R reject(Predicate<? super T> predicate, R target)
reject in interface RichIterable<T>reject in class AbstractMutableList<T>public <P> FastList<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>public <P,R extends Collection<T>> R rejectWith(Predicate2<? super T,? super P> predicate, P parameter, R target)
rejectWith in interface RichIterable<T>rejectWith in class AbstractMutableList<T>public <P> Twin<MutableList<T>> selectAndRejectWith(Predicate2<? super T,? super P> predicate, P parameter)
selectAndRejectWith in interface MutableCollection<T>selectAndRejectWith in class AbstractMutableList<T>public <S> FastList<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 AbstractMutableList<T>public boolean removeIf(Predicate<? super T> predicate)
removeIf in interface MutableCollection<T>removeIf in class AbstractMutableList<T>public <P> boolean removeIfWith(Predicate2<? super T,? super P> predicate, P parameter)
removeIfWith in interface MutableCollection<T>removeIfWith in class AbstractMutableList<T>public <V> FastList<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>public <R extends MutableBooleanCollection> R collectBoolean(BooleanFunction<? super T> booleanFunction, R target)
collectBoolean in interface RichIterable<T>public <R extends MutableBooleanCollection> R flatCollectBoolean(Function<? super T,? extends BooleanIterable> function, R target)
flatCollectBoolean in interface RichIterable<T>public <R extends MutableByteCollection> R collectByte(ByteFunction<? super T> byteFunction, R target)
collectByte in interface RichIterable<T>public <R extends MutableByteCollection> R flatCollectByte(Function<? super T,? extends ByteIterable> function, R target)
flatCollectByte in interface RichIterable<T>public <R extends MutableCharCollection> R collectChar(CharFunction<? super T> charFunction, R target)
collectChar in interface RichIterable<T>public <R extends MutableCharCollection> R flatCollectChar(Function<? super T,? extends CharIterable> function, R target)
flatCollectChar in interface RichIterable<T>public <R extends MutableDoubleCollection> R collectDouble(DoubleFunction<? super T> doubleFunction, R target)
collectDouble in interface RichIterable<T>public <R extends MutableDoubleCollection> R flatCollectDouble(Function<? super T,? extends DoubleIterable> function, R target)
flatCollectDouble in interface RichIterable<T>public <R extends MutableFloatCollection> R collectFloat(FloatFunction<? super T> floatFunction, R target)
collectFloat in interface RichIterable<T>public <R extends MutableFloatCollection> R flatCollectFloat(Function<? super T,? extends FloatIterable> function, R target)
flatCollectFloat in interface RichIterable<T>public <R extends MutableIntCollection> R collectInt(IntFunction<? super T> intFunction, R target)
collectInt in interface RichIterable<T>public <R extends MutableIntCollection> R flatCollectInt(Function<? super T,? extends IntIterable> function, R target)
flatCollectInt in interface RichIterable<T>public <R extends MutableLongCollection> R collectLong(LongFunction<? super T> longFunction, R target)
collectLong in interface RichIterable<T>public <R extends MutableLongCollection> R flatCollectLong(Function<? super T,? extends LongIterable> function, R target)
flatCollectLong in interface RichIterable<T>public <R extends MutableShortCollection> R collectShort(ShortFunction<? super T> shortFunction, R target)
collectShort in interface RichIterable<T>public <R extends MutableShortCollection> R flatCollectShort(Function<? super T,? extends ShortIterable> function, R target)
flatCollectShort in interface RichIterable<T>public <V,R extends Collection<V>> R collect(Function<? super T,? extends V> function, R target)
collect in interface RichIterable<T>collect in class AbstractMutableList<T>public <V> MutableList<V> collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function)
collectWithIndex in interface ListIterable<T>collectWithIndex in interface MutableList<T>collectWithIndex in interface OrderedIterable<T>collectWithIndex in interface ReversibleIterable<T>public <V,R extends Collection<V>> R collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function, R target)
collectWithIndex in interface OrderedIterable<T>public MutableList<T> selectWithIndex(ObjectIntPredicate<? super T> predicate)
selectWithIndex in interface ListIterable<T>selectWithIndex in interface MutableList<T>public MutableList<T> rejectWithIndex(ObjectIntPredicate<? super T> predicate)
rejectWithIndex in interface ListIterable<T>rejectWithIndex in interface MutableList<T>public <R extends Collection<T>> R selectWithIndex(ObjectIntPredicate<? super T> predicate, R target)
selectWithIndex in interface OrderedIterable<T>public <R extends Collection<T>> R rejectWithIndex(ObjectIntPredicate<? super T> predicate, R target)
rejectWithIndex in interface OrderedIterable<T>public <V> FastList<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>public <V,R extends Collection<V>> R flatCollect(Function<? super T,? extends Iterable<V>> function, R target)
flatCollect in interface RichIterable<T>flatCollect in class AbstractMutableList<T>public <P,V> FastList<V> collectWith(Function2<? super T,? super P,? extends V> 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>public <P,V,R extends Collection<V>> R collectWith(Function2<? super T,? super P,? extends V> function, P parameter, R target)
collectWith in interface RichIterable<T>collectWith in class AbstractMutableList<T>public <V> FastList<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>public <V,R extends Collection<V>> R collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function, R target)
collectIf in interface RichIterable<T>collectIf in class AbstractMutableList<T>public T detect(Predicate<? super T> predicate)
detect in interface RichIterable<T>detect in class AbstractMutableList<T>public <P> T detectWith(Predicate2<? super T,? super P> predicate, P parameter)
detectWith in interface RichIterable<T>detectWith in class AbstractMutableList<T>public Optional<T> detectOptional(Predicate<? super T> predicate)
detectOptional in interface RichIterable<T>detectOptional in class AbstractMutableList<T>public <P> Optional<T> detectWithOptional(Predicate2<? super T,? super P> predicate, P parameter)
detectWithOptional in interface RichIterable<T>detectWithOptional in class AbstractMutableList<T>public int detectIndex(Predicate<? super T> predicate)
detectIndex in interface OrderedIterable<T>detectIndex in class AbstractMutableList<T>public int detectLastIndex(Predicate<? super T> predicate)
detectLastIndex in interface ReversibleIterable<T>detectLastIndex in class AbstractMutableList<T>public T min(Comparator<? super T> comparator)
min in interface RichIterable<T>min in class AbstractMutableList<T>public T max(Comparator<? super T> comparator)
max in interface RichIterable<T>max in class AbstractMutableList<T>public T min()
min in interface OrderedIterable<T>min in interface RichIterable<T>min in class AbstractMutableList<T>public T max()
max in interface OrderedIterable<T>max in interface RichIterable<T>max in class AbstractMutableList<T>public <V extends Comparable<? super V>> T minBy(Function<? super T,? extends V> function)
minBy in interface RichIterable<T>minBy in class AbstractMutableList<T>public <V extends Comparable<? super V>> T maxBy(Function<? super T,? extends V> function)
maxBy in interface RichIterable<T>maxBy in class AbstractMutableList<T>public T get(int index)
public boolean add(T newItem)
add in interface Collection<T>add in interface List<T>add in class AbstractMutableCollection<T>public boolean remove(Object object)
remove in interface Collection<T>remove in interface List<T>remove in class AbstractMutableCollection<T>public boolean addAll(int index,
Collection<? extends T> source)
public int size()
size in interface Collection<T>size in interface List<T>size in interface RichIterable<T>size in interface BatchIterable<T>public int count(Predicate<? super T> predicate)
count in interface RichIterable<T>count in class AbstractMutableList<T>public <P> int countWith(Predicate2<? super T,? super P> predicate, P parameter)
countWith in interface RichIterable<T>countWith in class AbstractMutableList<T>public <S> boolean corresponds(OrderedIterable<S> other, Predicate2<? super T,? super S> predicate)
corresponds in interface OrderedIterable<T>corresponds in class AbstractMutableList<T>public boolean anySatisfy(Predicate<? super T> predicate)
anySatisfy in interface RichIterable<T>anySatisfy in class AbstractMutableList<T>public <P> boolean anySatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
anySatisfyWith in interface RichIterable<T>anySatisfyWith in class AbstractMutableList<T>public boolean allSatisfy(Predicate<? super T> predicate)
allSatisfy in interface RichIterable<T>allSatisfy in class AbstractMutableList<T>public <P> boolean allSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
allSatisfyWith in interface RichIterable<T>allSatisfyWith in class AbstractMutableList<T>public boolean noneSatisfy(Predicate<? super T> predicate)
noneSatisfy in interface RichIterable<T>noneSatisfy in class AbstractMutableList<T>public <P> boolean noneSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
noneSatisfyWith in interface RichIterable<T>noneSatisfyWith in class AbstractMutableList<T>public <IV> IV injectInto(IV injectedValue,
Function2<? super IV,? super T,? extends IV> function)
injectInto in interface RichIterable<T>injectInto in class AbstractMutableList<T>public int injectInto(int injectedValue,
IntObjectToIntFunction<? super T> function)
injectInto in interface RichIterable<T>injectInto in class AbstractMutableList<T>public long injectInto(long injectedValue,
LongObjectToLongFunction<? super T> function)
injectInto in interface RichIterable<T>injectInto in class AbstractMutableList<T>public double injectInto(double injectedValue,
DoubleObjectToDoubleFunction<? super T> function)
injectInto in interface RichIterable<T>injectInto in class AbstractRichIterable<T>public float injectInto(float injectedValue,
FloatObjectToFloatFunction<? super T> function)
injectInto in interface RichIterable<T>injectInto in class AbstractMutableList<T>public MutableList<T> distinct()
distinct in interface ListIterable<T>distinct in interface MutableList<T>distinct in interface OrderedIterable<T>distinct in interface ReversibleIterable<T>distinct in class AbstractMutableList<T>public MutableList<T> distinct(HashingStrategy<? super T> hashingStrategy)
distinct in interface ListIterable<T>distinct in interface MutableList<T>distinct in class AbstractMutableList<T>public IntSummaryStatistics summarizeInt(IntFunction<? super T> function)
summarizeInt in interface RichIterable<T>public DoubleSummaryStatistics summarizeFloat(FloatFunction<? super T> function)
summarizeFloat in interface RichIterable<T>public LongSummaryStatistics summarizeLong(LongFunction<? super T> function)
summarizeLong in interface RichIterable<T>public DoubleSummaryStatistics summarizeDouble(DoubleFunction<? super T> function)
summarizeDouble in interface RichIterable<T>public Optional<T> reduce(BinaryOperator<T> accumulator)
reduce in interface RichIterable<T>reduce in class AbstractMutableCollection<T>public <R,A> R reduceInPlace(Collector<? super T,A,R> collector)
reduceInPlace in interface RichIterable<T>public <R> R reduceInPlace(Supplier<R> supplier, BiConsumer<R,? super T> accumulator)
reduceInPlace in interface RichIterable<T>public long sumOfInt(IntFunction<? super T> function)
sumOfInt in interface RichIterable<T>sumOfInt in class AbstractMutableList<T>public long sumOfLong(LongFunction<? super T> function)
sumOfLong in interface RichIterable<T>sumOfLong in class AbstractMutableList<T>public double sumOfFloat(FloatFunction<? super T> function)
sumOfFloat in interface RichIterable<T>sumOfFloat in class AbstractMutableList<T>public double sumOfDouble(DoubleFunction<? super T> function)
sumOfDouble in interface RichIterable<T>sumOfDouble in class AbstractMutableList<T>public <V> MutableObjectLongMap<V> sumByInt(Function<? super T,? extends V> groupBy, IntFunction<? super T> function)
sumByInt in interface MutableCollection<T>sumByInt in interface RichIterable<T>sumByInt in class AbstractMutableCollection<T>public <V> MutableObjectLongMap<V> sumByLong(Function<? super T,? extends V> groupBy, LongFunction<? super T> function)
sumByLong in interface MutableCollection<T>sumByLong in interface RichIterable<T>sumByLong in class AbstractMutableCollection<T>public <V> MutableObjectDoubleMap<V> sumByFloat(Function<? super T,? extends V> groupBy, FloatFunction<? super T> function)
sumByFloat in interface MutableCollection<T>sumByFloat in interface RichIterable<T>sumByFloat in class AbstractMutableCollection<T>public <V> MutableObjectDoubleMap<V> sumByDouble(Function<? super T,? extends V> groupBy, DoubleFunction<? super T> function)
sumByDouble in interface MutableCollection<T>sumByDouble in interface RichIterable<T>sumByDouble in class AbstractMutableCollection<T>public <IV,P> IV injectIntoWith(IV injectValue,
Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter)
injectIntoWith in interface MutableCollection<T>injectIntoWith in class AbstractMutableList<T>public FastList<T> toList()
toList in interface RichIterable<T>toList in class AbstractRichIterable<T>public FastList<T> toSortedList()
toSortedList in interface RichIterable<T>toSortedList in class AbstractMutableList<T>public FastList<T> toSortedList(Comparator<? super T> comparator)
toSortedList in interface RichIterable<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>takeWhile in class AbstractMutableList<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>dropWhile in class AbstractMutableList<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>partitionWhile in class AbstractMutableList<T>public boolean equals(Object that)
equals in interface Collection<T>equals in interface List<T>equals in interface ListIterable<T>equals in class AbstractMutableList<T>public boolean fastListEquals(FastList<?> that)
public int hashCode()
hashCode in interface Collection<T>hashCode in interface List<T>hashCode in interface ListIterable<T>hashCode in class AbstractMutableList<T>public void replaceAll(UnaryOperator<T> operator)
replaceAll in interface List<T>public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2004–2022. All rights reserved.