Class FastList<T>
- java.lang.Object
-
- org.eclipse.collections.impl.AbstractRichIterable<T>
-
- org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection<T>
-
- org.eclipse.collections.impl.list.mutable.AbstractMutableList<T>
-
- org.eclipse.collections.impl.list.mutable.FastList<T>
-
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,Iterable<T>,Collection<T>,List<T>,RandomAccess,MutableCollection<T>,InternalIterable<T>,ListIterable<T>,MutableList<T>,OrderedIterable<T>,ReversibleIterable<T>,RichIterable<T>,BatchIterable<T>
public class FastList<T> extends AbstractMutableList<T> implements Externalizable, RandomAccess, BatchIterable<T>
FastList is an attempt to provide the same functionality as ArrayList without the support for concurrent modification exceptions. It also attempts to correct the problem with subclassing ArrayList in that the data elements are protected, not private. It is this issue that caused this class to be created in the first place. The intent was to provide optimized internal iterators which use direct access against the array of items, which is currently not possible by subclassing ArrayList.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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FastList()FastList(int initialCapacity)FastList(Collection<? extends T> source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T element)booleanadd(T newItem)booleanaddAll(int index, Collection<? extends T> source)booleanaddAll(Collection<? extends T> source)booleanallSatisfy(Predicate<? super T> predicate)<P> booleanallSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)booleananySatisfy(Predicate<? super T> predicate)<P> booleananySatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)voidappendString(Appendable appendable, String start, String separator, String end)voidbatchForEach(Procedure<? super T> procedure, int sectionIndex, int sectionCount)voidclear()FastList<T>clone()<V> FastList<V>collect(Function<? super T,? extends V> function)<V,R extends Collection<V>>
Rcollect(Function<? super T,? extends V> function, R target)<R extends MutableBooleanCollection>
RcollectBoolean(BooleanFunction<? super T> booleanFunction, R target)<R extends MutableByteCollection>
RcollectByte(ByteFunction<? super T> byteFunction, R target)<R extends MutableCharCollection>
RcollectChar(CharFunction<? super T> charFunction, R target)<R extends MutableDoubleCollection>
RcollectDouble(DoubleFunction<? super T> doubleFunction, R target)<R extends MutableFloatCollection>
RcollectFloat(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>>
RcollectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function, R target)<R extends MutableIntCollection>
RcollectInt(IntFunction<? super T> intFunction, R target)<R extends MutableLongCollection>
RcollectLong(LongFunction<? super T> longFunction, R target)<R extends MutableShortCollection>
RcollectShort(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>>
RcollectWith(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>>
RcollectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function, R target)<S> booleancorresponds(OrderedIterable<S> other, Predicate2<? super T,? super S> predicate)intcount(Predicate<? super T> predicate)<P> intcountWith(Predicate2<? super T,? super P> predicate, P parameter)Tdetect(Predicate<? super T> predicate)intdetectIndex(Predicate<? super T> predicate)intdetectLastIndex(Predicate<? super T> predicate)Optional<T>detectOptional(Predicate<? super T> predicate)<P> TdetectWith(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)voideach(Procedure<? super T> procedure)voidensureCapacity(int minCapacity)booleanequals(Object that)booleanfastListEquals(FastList<?> that)<V> FastList<V>flatCollect(Function<? super T,? extends Iterable<V>> function)<V,R extends Collection<V>>
RflatCollect(Function<? super T,? extends Iterable<V>> function, R target)<R extends MutableBooleanCollection>
RflatCollectBoolean(Function<? super T,? extends BooleanIterable> function, R target)<R extends MutableByteCollection>
RflatCollectByte(Function<? super T,? extends ByteIterable> function, R target)<R extends MutableCharCollection>
RflatCollectChar(Function<? super T,? extends CharIterable> function, R target)<R extends MutableDoubleCollection>
RflatCollectDouble(Function<? super T,? extends DoubleIterable> function, R target)<R extends MutableFloatCollection>
RflatCollectFloat(Function<? super T,? extends FloatIterable> function, R target)<R extends MutableIntCollection>
RflatCollectInt(Function<? super T,? extends IntIterable> function, R target)<R extends MutableLongCollection>
RflatCollectLong(Function<? super T,? extends LongIterable> function, R target)<R extends MutableShortCollection>
RflatCollectShort(Function<? super T,? extends ShortIterable> function, R target)voidforEach(int from, int to, Procedure<? super T> procedure)voidforEachIf(Predicate<? super T> predicate, Procedure<? super T> procedure)<P> voidforEachWith(Procedure2<? super T,? super P> procedure, P parameter)voidforEachWithIndex(int from, int to, ObjectIntProcedure<? super T> objectIntProcedure)voidforEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure)Tget(int index)intgetBatchCount(int batchSize)TgetFirst()TgetLast()<V> FastListMultimap<V,T>groupBy(Function<? super T,? extends V> function)<V,R extends MutableMultimap<V,T>>
RgroupBy(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>>
RgroupByEach(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>>
RgroupByUniqueKey(Function<? super T,? extends K> function, R target)inthashCode()intindexOf(Object object)doubleinjectInto(double injectedValue, DoubleObjectToDoubleFunction<? super T> function)floatinjectInto(float injectedValue, FloatObjectToFloatFunction<? super T> function)intinjectInto(int injectedValue, IntObjectToIntFunction<? super T> function)longinjectInto(long injectedValue, LongObjectToLongFunction<? super T> function)<IV> IVinjectInto(IV injectedValue, Function2<? super IV,? super T,? extends IV> function)<IV,P>
IVinjectIntoWith(IV injectValue, Function3<? super IV,? super T,? super P,? extends IV> function, P parameter)intlastIndexOf(Object object)Tmax()Tmax(Comparator<? super T> comparator)<V extends Comparable<? super V>>
TmaxBy(Function<? super T,? extends V> function)Tmin()Tmin(Comparator<? super T> comparator)<V extends Comparable<? super V>>
TminBy(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 passedelementsargument 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.booleannoneSatisfy(Predicate<? super T> predicate)<P> booleannoneSatisfyWith(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)voidreadExternal(ObjectInput in)Optional<T>reduce(BinaryOperator<T> accumulator)<R> RreduceInPlace(Supplier<R> supplier, BiConsumer<R,? super T> accumulator)<R,A>
RreduceInPlace(Collector<? super T,A,R> collector)FastList<T>reject(Predicate<? super T> predicate)<R extends Collection<T>>
Rreject(Predicate<? super T> predicate, R target)<P> FastList<T>rejectWith(Predicate2<? super T,? super P> predicate, P parameter)<P,R extends Collection<T>>
RrejectWith(Predicate2<? super T,? super P> predicate, P parameter, R target)MutableList<T>rejectWithIndex(ObjectIntPredicate<? super T> predicate)<R extends Collection<T>>
RrejectWithIndex(ObjectIntPredicate<? super T> predicate, R target)Tremove(int index)booleanremove(Object object)booleanremoveIf(Predicate<? super T> predicate)<P> booleanremoveIfWith(Predicate2<? super T,? super P> predicate, P parameter)voidreplaceAll(UnaryOperator<T> operator)FastList<T>reverseThis()FastList<T>select(Predicate<? super T> predicate)<R extends Collection<T>>
Rselect(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>>
RselectWith(Predicate2<? super T,? super P> predicate, P parameter, R target)MutableList<T>selectWithIndex(ObjectIntPredicate<? super T> predicate)<R extends Collection<T>>
RselectWithIndex(ObjectIntPredicate<? super T> predicate, R target)Tset(int index, T element)intsize()voidsort(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)DoubleSummaryStatisticssummarizeDouble(DoubleFunction<? super T> function)DoubleSummaryStatisticssummarizeFloat(FloatFunction<? super T> function)IntSummaryStatisticssummarizeInt(IntFunction<? super T> function)LongSummaryStatisticssummarizeLong(LongFunction<? super T> function)doublesumOfDouble(DoubleFunction<? super T> function)doublesumOfFloat(FloatFunction<? super T> function)longsumOfInt(IntFunction<? super T> function)longsumOfLong(LongFunction<? super T> function)MutableList<T>take(int count)MutableList<T>takeWhile(Predicate<? super T> predicate)Object[]toArray()<E> E[]toArray(int sourceFromIndex, int sourceToIndex)<E> E[]toArray(E[] array)<E> E[]toArray(E[] array, int sourceFromIndex, int sourceToIndex, int destinationIndex)FastList<T>toList()FastList<T>toSortedList()FastList<T>toSortedList(Comparator<? super T> comparator)T[]toTypedArray(Class<T> clazz)voidtrimToSize()booleantrimToSizeIfGreaterThanPercent(double loadFactor)Express load factor as 0.25 to trim a collection with more than 25% excess capacityFastList<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)voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.eclipse.collections.impl.list.mutable.AbstractMutableList
appendString, asParallel, asReversed, asSynchronized, asUnmodifiable, binarySearch, chunk, contains, containsAll, distinctBy, iterator, listIterator, listIterator, newEmpty, removeAll, retainAll, sortThisByBoolean, sortThisByByte, sortThisByChar, sortThisByDouble, sortThisByFloat, sortThisByInt, sortThisByLong, sortThisByShort, subList, tap, toSet, zip, zip, zipWithIndex, zipWithIndex
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection
addAllIterable, countBy, countByEach, countByWith, removeAllIterable, retainAllIterable
-
Methods inherited from class org.eclipse.collections.impl.AbstractRichIterable
asLazy, containsAllArguments, containsAllIterable, detectWithIfNone, forEach, into, isEmpty, toBag, toBiMap, toMap, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString
-
Methods inherited from interface org.eclipse.collections.impl.parallel.BatchIterable
forEach
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach
-
Methods inherited from interface org.eclipse.collections.api.list.ListIterable
binarySearch, forEachInBoth
-
Methods inherited from interface org.eclipse.collections.api.collection.MutableCollection
addAllIterable, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, removeAllIterable, retainAllIterable
-
Methods inherited from interface org.eclipse.collections.api.list.MutableList
collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollectWith, shuffleThis, shuffleThis, sortThisBy, toImmutable, toImmutableList, toReversed, with, withAll, without, withoutAll
-
Methods inherited from interface org.eclipse.collections.api.ordered.OrderedIterable
getFirstOptional, getLastOptional, toStack
-
Methods inherited from interface org.eclipse.collections.api.ordered.ReversibleIterable
reverseForEach, reverseForEachWithIndex
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, appendString, asLazy, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countByEach, countByWith, detectIfNone, detectWithIfNone, flatCollectWith, forEach, 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, toString
-
-
-
-
Constructor Detail
-
FastList
public FastList()
-
FastList
public FastList(int initialCapacity)
-
FastList
public FastList(Collection<? extends T> source)
-
-
Method Detail
-
newList
public static <E> FastList<E> newList()
-
wrapCopy
public static <E> FastList<E> wrapCopy(E... array)
-
newList
public static <E> FastList<E> newList(int initialCapacity)
-
newListWith
public static <E> FastList<E> newListWith(E... elements)
Creates a new list using the passedelementsargument 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. !!!
-
newWithNValues
public 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.- Since:
- 3.0
-
clone
public FastList<T> clone()
- Specified by:
clonein interfaceMutableList<T>- Overrides:
clonein classAbstractMutableList<T>
-
clear
public void clear()
-
forEach
public void forEach(int from, int to, Procedure<? super T> procedure)- Specified by:
forEachin interfaceOrderedIterable<T>- Overrides:
forEachin classAbstractMutableList<T>
-
forEachWithIndex
public void forEachWithIndex(int from, int to, ObjectIntProcedure<? super T> objectIntProcedure)- Specified by:
forEachWithIndexin interfaceOrderedIterable<T>- Overrides:
forEachWithIndexin classAbstractMutableList<T>
-
batchForEach
public void batchForEach(Procedure<? super T> procedure, int sectionIndex, int sectionCount)
- Specified by:
batchForEachin interfaceBatchIterable<T>
-
getBatchCount
public int getBatchCount(int batchSize)
- Specified by:
getBatchCountin interfaceBatchIterable<T>
-
toArray
public <E> E[] toArray(E[] array, int sourceFromIndex, int sourceToIndex, int destinationIndex)
-
toArray
public <E> E[] toArray(int sourceFromIndex, int sourceToIndex)
-
sort
public void sort(Comparator<? super T> comparator)
Overrides default method from List.
-
sortThis
public FastList<T> sortThis(Comparator<? super T> comparator)
- Specified by:
sortThisin interfaceMutableList<T>
-
sortThis
public FastList<T> sortThis()
- Specified by:
sortThisin interfaceMutableList<T>
-
reverseThis
public FastList<T> reverseThis()
- Specified by:
reverseThisin interfaceMutableList<T>
-
addAll
public boolean addAll(Collection<? extends T> source)
- Specified by:
addAllin interfaceCollection<T>- Specified by:
addAllin interfaceList<T>- Overrides:
addAllin classAbstractMutableCollection<T>
-
toArray
public <E> E[] toArray(E[] array)
- Specified by:
toArrayin interfaceCollection<T>- Specified by:
toArrayin interfaceList<T>- Specified by:
toArrayin interfaceRichIterable<T>- Overrides:
toArrayin classAbstractRichIterable<T>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<T>- Specified by:
toArrayin interfaceList<T>- Specified by:
toArrayin interfaceRichIterable<T>- Overrides:
toArrayin classAbstractRichIterable<T>
-
indexOf
public int indexOf(Object object)
- Specified by:
indexOfin interfaceList<T>- Specified by:
indexOfin interfaceMutableList<T>- Specified by:
indexOfin interfaceOrderedIterable<T>- Overrides:
indexOfin classAbstractMutableList<T>
-
lastIndexOf
public int lastIndexOf(Object object)
- Specified by:
lastIndexOfin interfaceList<T>- Specified by:
lastIndexOfin interfaceListIterable<T>- Overrides:
lastIndexOfin classAbstractMutableList<T>
-
spliterator
public Spliterator<T> spliterator()
- Specified by:
spliteratorin interfaceCollection<T>- Specified by:
spliteratorin interfaceIterable<T>- Specified by:
spliteratorin interfaceList<T>- Since:
- 8.1
-
trimToSize
public void trimToSize()
-
trimToSizeIfGreaterThanPercent
public boolean trimToSizeIfGreaterThanPercent(double loadFactor)
Express load factor as 0.25 to trim a collection with more than 25% excess capacity
-
ensureCapacity
public void ensureCapacity(int minCapacity)
-
getFirst
public T getFirst()
- Specified by:
getFirstin interfaceListIterable<T>- Specified by:
getFirstin interfaceMutableList<T>- Specified by:
getFirstin interfaceOrderedIterable<T>- Specified by:
getFirstin interfaceRichIterable<T>- Overrides:
getFirstin classAbstractMutableList<T>
-
getLast
public T getLast()
- Specified by:
getLastin interfaceListIterable<T>- Specified by:
getLastin interfaceMutableList<T>- Specified by:
getLastin interfaceOrderedIterable<T>- Specified by:
getLastin interfaceRichIterable<T>- Overrides:
getLastin classAbstractMutableList<T>
-
groupBy
public <V> FastListMultimap<V,T> groupBy(Function<? super T,? extends V> function)
- Specified by:
groupByin interfaceListIterable<T>- Specified by:
groupByin interfaceMutableCollection<T>- Specified by:
groupByin interfaceMutableList<T>- Specified by:
groupByin interfaceOrderedIterable<T>- Specified by:
groupByin interfaceReversibleIterable<T>- Specified by:
groupByin interfaceRichIterable<T>- Overrides:
groupByin classAbstractMutableList<T>
-
groupBy
public <V,R extends MutableMultimap<V,T>> R groupBy(Function<? super T,? extends V> function, R target)
- Specified by:
groupByin interfaceRichIterable<T>- Overrides:
groupByin classAbstractRichIterable<T>
-
groupByEach
public <V> FastListMultimap<V,T> groupByEach(Function<? super T,? extends Iterable<V>> function)
- Specified by:
groupByEachin interfaceListIterable<T>- Specified by:
groupByEachin interfaceMutableCollection<T>- Specified by:
groupByEachin interfaceMutableList<T>- Specified by:
groupByEachin interfaceOrderedIterable<T>- Specified by:
groupByEachin interfaceReversibleIterable<T>- Specified by:
groupByEachin interfaceRichIterable<T>- Overrides:
groupByEachin classAbstractMutableList<T>
-
groupByEach
public <V,R extends MutableMultimap<V,T>> R groupByEach(Function<? super T,? extends Iterable<V>> function, R target)
- Specified by:
groupByEachin interfaceRichIterable<T>- Overrides:
groupByEachin classAbstractRichIterable<T>
-
groupByUniqueKey
public <K> MutableMap<K,T> groupByUniqueKey(Function<? super T,? extends K> function)
- Specified by:
groupByUniqueKeyin interfaceMutableCollection<T>- Specified by:
groupByUniqueKeyin interfaceRichIterable<T>- Overrides:
groupByUniqueKeyin classAbstractMutableList<T>
-
groupByUniqueKey
public <K,R extends MutableMapIterable<K,T>> R groupByUniqueKey(Function<? super T,? extends K> function, R target)
- Specified by:
groupByUniqueKeyin interfaceRichIterable<T>- Overrides:
groupByUniqueKeyin classAbstractRichIterable<T>
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfaceRichIterable<T>- Overrides:
appendStringin classAbstractMutableList<T>
-
take
public MutableList<T> take(int count)
- Specified by:
takein interfaceListIterable<T>- Specified by:
takein interfaceMutableList<T>- Specified by:
takein interfaceReversibleIterable<T>- Overrides:
takein classAbstractMutableList<T>
-
drop
public MutableList<T> drop(int count)
- Specified by:
dropin interfaceListIterable<T>- Specified by:
dropin interfaceMutableList<T>- Specified by:
dropin interfaceReversibleIterable<T>- Overrides:
dropin classAbstractMutableList<T>
-
partition
public PartitionFastList<T> partition(Predicate<? super T> predicate)
- Specified by:
partitionin interfaceListIterable<T>- Specified by:
partitionin interfaceMutableCollection<T>- Specified by:
partitionin interfaceMutableList<T>- Specified by:
partitionin interfaceOrderedIterable<T>- Specified by:
partitionin interfaceReversibleIterable<T>- Specified by:
partitionin interfaceRichIterable<T>- Overrides:
partitionin classAbstractMutableList<T>
-
partitionWith
public <P> PartitionFastList<T> partitionWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
partitionWithin interfaceListIterable<T>- Specified by:
partitionWithin interfaceMutableCollection<T>- Specified by:
partitionWithin interfaceMutableList<T>- Specified by:
partitionWithin interfaceOrderedIterable<T>- Specified by:
partitionWithin interfaceReversibleIterable<T>- Specified by:
partitionWithin interfaceRichIterable<T>- Overrides:
partitionWithin classAbstractMutableList<T>
-
each
public void each(Procedure<? super T> procedure)
- Specified by:
eachin interfaceRichIterable<T>- Overrides:
eachin classAbstractMutableList<T>
-
forEachWithIndex
public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure)
- Specified by:
forEachWithIndexin interfaceInternalIterable<T>- Specified by:
forEachWithIndexin interfaceOrderedIterable<T>- Overrides:
forEachWithIndexin classAbstractMutableList<T>
-
forEachWith
public <P> void forEachWith(Procedure2<? super T,? super P> procedure, P parameter)
- Specified by:
forEachWithin interfaceInternalIterable<T>- Overrides:
forEachWithin classAbstractMutableList<T>
-
select
public FastList<T> select(Predicate<? super T> predicate)
- Specified by:
selectin interfaceListIterable<T>- Specified by:
selectin interfaceMutableCollection<T>- Specified by:
selectin interfaceMutableList<T>- Specified by:
selectin interfaceOrderedIterable<T>- Specified by:
selectin interfaceReversibleIterable<T>- Specified by:
selectin interfaceRichIterable<T>
-
select
public <R extends Collection<T>> R select(Predicate<? super T> predicate, R target)
- Specified by:
selectin interfaceRichIterable<T>- Overrides:
selectin classAbstractMutableList<T>
-
selectWith
public <P> FastList<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
selectWithin interfaceListIterable<T>- Specified by:
selectWithin interfaceMutableCollection<T>- Specified by:
selectWithin interfaceMutableList<T>- Specified by:
selectWithin interfaceOrderedIterable<T>- Specified by:
selectWithin interfaceReversibleIterable<T>- Specified by:
selectWithin interfaceRichIterable<T>
-
selectWith
public <P,R extends Collection<T>> R selectWith(Predicate2<? super T,? super P> predicate, P parameter, R target)
- Specified by:
selectWithin interfaceRichIterable<T>- Overrides:
selectWithin classAbstractMutableList<T>
-
reject
public FastList<T> reject(Predicate<? super T> predicate)
- Specified by:
rejectin interfaceListIterable<T>- Specified by:
rejectin interfaceMutableCollection<T>- Specified by:
rejectin interfaceMutableList<T>- Specified by:
rejectin interfaceOrderedIterable<T>- Specified by:
rejectin interfaceReversibleIterable<T>- Specified by:
rejectin interfaceRichIterable<T>
-
reject
public <R extends Collection<T>> R reject(Predicate<? super T> predicate, R target)
- Specified by:
rejectin interfaceRichIterable<T>- Overrides:
rejectin classAbstractMutableList<T>
-
rejectWith
public <P> FastList<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
rejectWithin interfaceListIterable<T>- Specified by:
rejectWithin interfaceMutableCollection<T>- Specified by:
rejectWithin interfaceMutableList<T>- Specified by:
rejectWithin interfaceOrderedIterable<T>- Specified by:
rejectWithin interfaceReversibleIterable<T>- Specified by:
rejectWithin interfaceRichIterable<T>
-
rejectWith
public <P,R extends Collection<T>> R rejectWith(Predicate2<? super T,? super P> predicate, P parameter, R target)
- Specified by:
rejectWithin interfaceRichIterable<T>- Overrides:
rejectWithin classAbstractMutableList<T>
-
selectAndRejectWith
public <P> Twin<MutableList<T>> selectAndRejectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
selectAndRejectWithin interfaceMutableCollection<T>- Overrides:
selectAndRejectWithin classAbstractMutableList<T>
-
selectInstancesOf
public <S> FastList<S> selectInstancesOf(Class<S> clazz)
- Specified by:
selectInstancesOfin interfaceListIterable<T>- Specified by:
selectInstancesOfin interfaceMutableCollection<T>- Specified by:
selectInstancesOfin interfaceMutableList<T>- Specified by:
selectInstancesOfin interfaceOrderedIterable<T>- Specified by:
selectInstancesOfin interfaceReversibleIterable<T>- Specified by:
selectInstancesOfin interfaceRichIterable<T>- Overrides:
selectInstancesOfin classAbstractMutableList<T>
-
removeIf
public boolean removeIf(Predicate<? super T> predicate)
- Specified by:
removeIfin interfaceMutableCollection<T>- Overrides:
removeIfin classAbstractMutableList<T>
-
removeIfWith
public <P> boolean removeIfWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
removeIfWithin interfaceMutableCollection<T>- Overrides:
removeIfWithin classAbstractMutableList<T>
-
collect
public <V> FastList<V> collect(Function<? super T,? extends V> function)
- Specified by:
collectin interfaceListIterable<T>- Specified by:
collectin interfaceMutableCollection<T>- Specified by:
collectin interfaceMutableList<T>- Specified by:
collectin interfaceOrderedIterable<T>- Specified by:
collectin interfaceReversibleIterable<T>- Specified by:
collectin interfaceRichIterable<T>
-
collectBoolean
public <R extends MutableBooleanCollection> R collectBoolean(BooleanFunction<? super T> booleanFunction, R target)
- Specified by:
collectBooleanin interfaceRichIterable<T>
-
flatCollectBoolean
public <R extends MutableBooleanCollection> R flatCollectBoolean(Function<? super T,? extends BooleanIterable> function, R target)
- Specified by:
flatCollectBooleanin interfaceRichIterable<T>
-
collectByte
public <R extends MutableByteCollection> R collectByte(ByteFunction<? super T> byteFunction, R target)
- Specified by:
collectBytein interfaceRichIterable<T>
-
flatCollectByte
public <R extends MutableByteCollection> R flatCollectByte(Function<? super T,? extends ByteIterable> function, R target)
- Specified by:
flatCollectBytein interfaceRichIterable<T>
-
collectChar
public <R extends MutableCharCollection> R collectChar(CharFunction<? super T> charFunction, R target)
- Specified by:
collectCharin interfaceRichIterable<T>
-
flatCollectChar
public <R extends MutableCharCollection> R flatCollectChar(Function<? super T,? extends CharIterable> function, R target)
- Specified by:
flatCollectCharin interfaceRichIterable<T>
-
collectDouble
public <R extends MutableDoubleCollection> R collectDouble(DoubleFunction<? super T> doubleFunction, R target)
- Specified by:
collectDoublein interfaceRichIterable<T>
-
flatCollectDouble
public <R extends MutableDoubleCollection> R flatCollectDouble(Function<? super T,? extends DoubleIterable> function, R target)
- Specified by:
flatCollectDoublein interfaceRichIterable<T>
-
collectFloat
public <R extends MutableFloatCollection> R collectFloat(FloatFunction<? super T> floatFunction, R target)
- Specified by:
collectFloatin interfaceRichIterable<T>
-
flatCollectFloat
public <R extends MutableFloatCollection> R flatCollectFloat(Function<? super T,? extends FloatIterable> function, R target)
- Specified by:
flatCollectFloatin interfaceRichIterable<T>
-
collectInt
public <R extends MutableIntCollection> R collectInt(IntFunction<? super T> intFunction, R target)
- Specified by:
collectIntin interfaceRichIterable<T>
-
flatCollectInt
public <R extends MutableIntCollection> R flatCollectInt(Function<? super T,? extends IntIterable> function, R target)
- Specified by:
flatCollectIntin interfaceRichIterable<T>
-
collectLong
public <R extends MutableLongCollection> R collectLong(LongFunction<? super T> longFunction, R target)
- Specified by:
collectLongin interfaceRichIterable<T>
-
flatCollectLong
public <R extends MutableLongCollection> R flatCollectLong(Function<? super T,? extends LongIterable> function, R target)
- Specified by:
flatCollectLongin interfaceRichIterable<T>
-
collectShort
public <R extends MutableShortCollection> R collectShort(ShortFunction<? super T> shortFunction, R target)
- Specified by:
collectShortin interfaceRichIterable<T>
-
flatCollectShort
public <R extends MutableShortCollection> R flatCollectShort(Function<? super T,? extends ShortIterable> function, R target)
- Specified by:
flatCollectShortin interfaceRichIterable<T>
-
collect
public <V,R extends Collection<V>> R collect(Function<? super T,? extends V> function, R target)
- Specified by:
collectin interfaceRichIterable<T>- Overrides:
collectin classAbstractMutableList<T>
-
collectWithIndex
public <V> MutableList<V> collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function)
- Specified by:
collectWithIndexin interfaceListIterable<T>- Specified by:
collectWithIndexin interfaceMutableList<T>- Specified by:
collectWithIndexin interfaceOrderedIterable<T>- Specified by:
collectWithIndexin interfaceReversibleIterable<T>- Since:
- 9.1.
-
collectWithIndex
public <V,R extends Collection<V>> R collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function, R target)
- Specified by:
collectWithIndexin interfaceOrderedIterable<T>- Since:
- 9.1.
-
selectWithIndex
public MutableList<T> selectWithIndex(ObjectIntPredicate<? super T> predicate)
- Specified by:
selectWithIndexin interfaceListIterable<T>- Specified by:
selectWithIndexin interfaceMutableList<T>- Since:
- 11.0
-
rejectWithIndex
public MutableList<T> rejectWithIndex(ObjectIntPredicate<? super T> predicate)
- Specified by:
rejectWithIndexin interfaceListIterable<T>- Specified by:
rejectWithIndexin interfaceMutableList<T>- Since:
- 11.0
-
selectWithIndex
public <R extends Collection<T>> R selectWithIndex(ObjectIntPredicate<? super T> predicate, R target)
- Specified by:
selectWithIndexin interfaceOrderedIterable<T>- Since:
- 11.0
-
rejectWithIndex
public <R extends Collection<T>> R rejectWithIndex(ObjectIntPredicate<? super T> predicate, R target)
- Specified by:
rejectWithIndexin interfaceOrderedIterable<T>- Since:
- 11.0
-
flatCollect
public <V> FastList<V> flatCollect(Function<? super T,? extends Iterable<V>> function)
- Specified by:
flatCollectin interfaceListIterable<T>- Specified by:
flatCollectin interfaceMutableCollection<T>- Specified by:
flatCollectin interfaceMutableList<T>- Specified by:
flatCollectin interfaceOrderedIterable<T>- Specified by:
flatCollectin interfaceReversibleIterable<T>- Specified by:
flatCollectin interfaceRichIterable<T>
-
flatCollect
public <V,R extends Collection<V>> R flatCollect(Function<? super T,? extends Iterable<V>> function, R target)
- Specified by:
flatCollectin interfaceRichIterable<T>- Overrides:
flatCollectin classAbstractMutableList<T>
-
collectWith
public <P,V> FastList<V> collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
- Specified by:
collectWithin interfaceListIterable<T>- Specified by:
collectWithin interfaceMutableCollection<T>- Specified by:
collectWithin interfaceMutableList<T>- Specified by:
collectWithin interfaceOrderedIterable<T>- Specified by:
collectWithin interfaceReversibleIterable<T>- Specified by:
collectWithin interfaceRichIterable<T>
-
collectWith
public <P,V,R extends Collection<V>> R collectWith(Function2<? super T,? super P,? extends V> function, P parameter, R target)
- Specified by:
collectWithin interfaceRichIterable<T>- Overrides:
collectWithin classAbstractMutableList<T>
-
collectIf
public <V> FastList<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
- Specified by:
collectIfin interfaceListIterable<T>- Specified by:
collectIfin interfaceMutableCollection<T>- Specified by:
collectIfin interfaceMutableList<T>- Specified by:
collectIfin interfaceOrderedIterable<T>- Specified by:
collectIfin interfaceReversibleIterable<T>- Specified by:
collectIfin interfaceRichIterable<T>
-
collectIf
public <V,R extends Collection<V>> R collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function, R target)
- Specified by:
collectIfin interfaceRichIterable<T>- Overrides:
collectIfin classAbstractMutableList<T>
-
detect
public T detect(Predicate<? super T> predicate)
- Specified by:
detectin interfaceRichIterable<T>- Overrides:
detectin classAbstractMutableList<T>
-
detectWith
public <P> T detectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
detectWithin interfaceRichIterable<T>- Overrides:
detectWithin classAbstractMutableList<T>
-
detectOptional
public Optional<T> detectOptional(Predicate<? super T> predicate)
- Specified by:
detectOptionalin interfaceRichIterable<T>- Overrides:
detectOptionalin classAbstractMutableList<T>
-
detectWithOptional
public <P> Optional<T> detectWithOptional(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
detectWithOptionalin interfaceRichIterable<T>- Overrides:
detectWithOptionalin classAbstractMutableList<T>
-
detectIndex
public int detectIndex(Predicate<? super T> predicate)
- Specified by:
detectIndexin interfaceOrderedIterable<T>- Overrides:
detectIndexin classAbstractMutableList<T>
-
detectLastIndex
public int detectLastIndex(Predicate<? super T> predicate)
- Specified by:
detectLastIndexin interfaceReversibleIterable<T>- Overrides:
detectLastIndexin classAbstractMutableList<T>
-
min
public T min(Comparator<? super T> comparator)
- Specified by:
minin interfaceRichIterable<T>- Overrides:
minin classAbstractMutableList<T>
-
max
public T max(Comparator<? super T> comparator)
- Specified by:
maxin interfaceRichIterable<T>- Overrides:
maxin classAbstractMutableList<T>
-
min
public T min()
- Specified by:
minin interfaceOrderedIterable<T>- Specified by:
minin interfaceRichIterable<T>- Overrides:
minin classAbstractMutableList<T>
-
max
public T max()
- Specified by:
maxin interfaceOrderedIterable<T>- Specified by:
maxin interfaceRichIterable<T>- Overrides:
maxin classAbstractMutableList<T>
-
minBy
public <V extends Comparable<? super V>> T minBy(Function<? super T,? extends V> function)
- Specified by:
minByin interfaceRichIterable<T>- Overrides:
minByin classAbstractMutableList<T>
-
maxBy
public <V extends Comparable<? super V>> T maxBy(Function<? super T,? extends V> function)
- Specified by:
maxByin interfaceRichIterable<T>- Overrides:
maxByin classAbstractMutableList<T>
-
get
public T get(int index)
-
add
public boolean add(T newItem)
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceList<T>- Overrides:
addin classAbstractMutableCollection<T>
-
remove
public boolean remove(Object object)
- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceList<T>- Overrides:
removein classAbstractMutableCollection<T>
-
addAll
public boolean addAll(int index, Collection<? extends T> source)
-
size
public int size()
- Specified by:
sizein interfaceBatchIterable<T>- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein interfaceRichIterable<T>
-
count
public int count(Predicate<? super T> predicate)
- Specified by:
countin interfaceRichIterable<T>- Overrides:
countin classAbstractMutableList<T>
-
countWith
public <P> int countWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
countWithin interfaceRichIterable<T>- Overrides:
countWithin classAbstractMutableList<T>
-
corresponds
public <S> boolean corresponds(OrderedIterable<S> other, Predicate2<? super T,? super S> predicate)
- Specified by:
correspondsin interfaceOrderedIterable<T>- Overrides:
correspondsin classAbstractMutableList<T>
-
anySatisfy
public boolean anySatisfy(Predicate<? super T> predicate)
- Specified by:
anySatisfyin interfaceRichIterable<T>- Overrides:
anySatisfyin classAbstractMutableList<T>
-
anySatisfyWith
public <P> boolean anySatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
anySatisfyWithin interfaceRichIterable<T>- Overrides:
anySatisfyWithin classAbstractMutableList<T>
-
allSatisfy
public boolean allSatisfy(Predicate<? super T> predicate)
- Specified by:
allSatisfyin interfaceRichIterable<T>- Overrides:
allSatisfyin classAbstractMutableList<T>
-
allSatisfyWith
public <P> boolean allSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
allSatisfyWithin interfaceRichIterable<T>- Overrides:
allSatisfyWithin classAbstractMutableList<T>
-
noneSatisfy
public boolean noneSatisfy(Predicate<? super T> predicate)
- Specified by:
noneSatisfyin interfaceRichIterable<T>- Overrides:
noneSatisfyin classAbstractMutableList<T>
-
noneSatisfyWith
public <P> boolean noneSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
noneSatisfyWithin interfaceRichIterable<T>- Overrides:
noneSatisfyWithin classAbstractMutableList<T>
-
injectInto
public <IV> IV injectInto(IV injectedValue, Function2<? super IV,? super T,? extends IV> function)- Specified by:
injectIntoin interfaceRichIterable<T>- Overrides:
injectIntoin classAbstractMutableList<T>
-
injectInto
public int injectInto(int injectedValue, IntObjectToIntFunction<? super T> function)- Specified by:
injectIntoin interfaceRichIterable<T>- Overrides:
injectIntoin classAbstractMutableList<T>
-
injectInto
public long injectInto(long injectedValue, LongObjectToLongFunction<? super T> function)- Specified by:
injectIntoin interfaceRichIterable<T>- Overrides:
injectIntoin classAbstractMutableList<T>
-
injectInto
public double injectInto(double injectedValue, DoubleObjectToDoubleFunction<? super T> function)- Specified by:
injectIntoin interfaceRichIterable<T>- Overrides:
injectIntoin classAbstractRichIterable<T>
-
injectInto
public float injectInto(float injectedValue, FloatObjectToFloatFunction<? super T> function)- Specified by:
injectIntoin interfaceRichIterable<T>- Overrides:
injectIntoin classAbstractMutableList<T>
-
distinct
public MutableList<T> distinct()
- Specified by:
distinctin interfaceListIterable<T>- Specified by:
distinctin interfaceMutableList<T>- Specified by:
distinctin interfaceOrderedIterable<T>- Specified by:
distinctin interfaceReversibleIterable<T>- Overrides:
distinctin classAbstractMutableList<T>
-
distinct
public MutableList<T> distinct(HashingStrategy<? super T> hashingStrategy)
- Specified by:
distinctin interfaceListIterable<T>- Specified by:
distinctin interfaceMutableList<T>- Overrides:
distinctin classAbstractMutableList<T>
-
summarizeInt
public IntSummaryStatistics summarizeInt(IntFunction<? super T> function)
- Specified by:
summarizeIntin interfaceRichIterable<T>- Since:
- 8.0
-
summarizeFloat
public DoubleSummaryStatistics summarizeFloat(FloatFunction<? super T> function)
- Specified by:
summarizeFloatin interfaceRichIterable<T>- Since:
- 8.0
-
summarizeLong
public LongSummaryStatistics summarizeLong(LongFunction<? super T> function)
- Specified by:
summarizeLongin interfaceRichIterable<T>- Since:
- 8.0
-
summarizeDouble
public DoubleSummaryStatistics summarizeDouble(DoubleFunction<? super T> function)
- Specified by:
summarizeDoublein interfaceRichIterable<T>- Since:
- 8.0
-
reduce
public Optional<T> reduce(BinaryOperator<T> accumulator)
- Specified by:
reducein interfaceRichIterable<T>- Overrides:
reducein classAbstractMutableCollection<T>- Since:
- 8.0
-
reduceInPlace
public <R,A> R reduceInPlace(Collector<? super T,A,R> collector)
- Specified by:
reduceInPlacein interfaceRichIterable<T>- Since:
- 8.0
-
reduceInPlace
public <R> R reduceInPlace(Supplier<R> supplier, BiConsumer<R,? super T> accumulator)
- Specified by:
reduceInPlacein interfaceRichIterable<T>- Since:
- 8.0
-
sumOfInt
public long sumOfInt(IntFunction<? super T> function)
- Specified by:
sumOfIntin interfaceRichIterable<T>- Overrides:
sumOfIntin classAbstractMutableList<T>
-
sumOfLong
public long sumOfLong(LongFunction<? super T> function)
- Specified by:
sumOfLongin interfaceRichIterable<T>- Overrides:
sumOfLongin classAbstractMutableList<T>
-
sumOfFloat
public double sumOfFloat(FloatFunction<? super T> function)
- Specified by:
sumOfFloatin interfaceRichIterable<T>- Overrides:
sumOfFloatin classAbstractMutableList<T>
-
sumOfDouble
public double sumOfDouble(DoubleFunction<? super T> function)
- Specified by:
sumOfDoublein interfaceRichIterable<T>- Overrides:
sumOfDoublein classAbstractMutableList<T>
-
sumByInt
public <V> MutableObjectLongMap<V> sumByInt(Function<? super T,? extends V> groupBy, IntFunction<? super T> function)
- Specified by:
sumByIntin interfaceMutableCollection<T>- Specified by:
sumByIntin interfaceRichIterable<T>- Overrides:
sumByIntin classAbstractMutableCollection<T>
-
sumByLong
public <V> MutableObjectLongMap<V> sumByLong(Function<? super T,? extends V> groupBy, LongFunction<? super T> function)
- Specified by:
sumByLongin interfaceMutableCollection<T>- Specified by:
sumByLongin interfaceRichIterable<T>- Overrides:
sumByLongin classAbstractMutableCollection<T>
-
sumByFloat
public <V> MutableObjectDoubleMap<V> sumByFloat(Function<? super T,? extends V> groupBy, FloatFunction<? super T> function)
- Specified by:
sumByFloatin interfaceMutableCollection<T>- Specified by:
sumByFloatin interfaceRichIterable<T>- Overrides:
sumByFloatin classAbstractMutableCollection<T>
-
sumByDouble
public <V> MutableObjectDoubleMap<V> sumByDouble(Function<? super T,? extends V> groupBy, DoubleFunction<? super T> function)
- Specified by:
sumByDoublein interfaceMutableCollection<T>- Specified by:
sumByDoublein interfaceRichIterable<T>- Overrides:
sumByDoublein classAbstractMutableCollection<T>
-
injectIntoWith
public <IV,P> IV injectIntoWith(IV injectValue, Function3<? super IV,? super T,? super P,? extends IV> function, P parameter)- Specified by:
injectIntoWithin interfaceMutableCollection<T>- Overrides:
injectIntoWithin classAbstractMutableList<T>
-
toList
public FastList<T> toList()
- Specified by:
toListin interfaceRichIterable<T>- Overrides:
toListin classAbstractRichIterable<T>
-
toSortedList
public FastList<T> toSortedList()
- Specified by:
toSortedListin interfaceRichIterable<T>- Overrides:
toSortedListin classAbstractMutableList<T>
-
toSortedList
public FastList<T> toSortedList(Comparator<? super T> comparator)
- Specified by:
toSortedListin interfaceRichIterable<T>
-
takeWhile
public MutableList<T> takeWhile(Predicate<? super T> predicate)
- Specified by:
takeWhilein interfaceListIterable<T>- Specified by:
takeWhilein interfaceMutableList<T>- Specified by:
takeWhilein interfaceOrderedIterable<T>- Specified by:
takeWhilein interfaceReversibleIterable<T>- Overrides:
takeWhilein classAbstractMutableList<T>
-
dropWhile
public MutableList<T> dropWhile(Predicate<? super T> predicate)
- Specified by:
dropWhilein interfaceListIterable<T>- Specified by:
dropWhilein interfaceMutableList<T>- Specified by:
dropWhilein interfaceOrderedIterable<T>- Specified by:
dropWhilein interfaceReversibleIterable<T>- Overrides:
dropWhilein classAbstractMutableList<T>
-
partitionWhile
public PartitionMutableList<T> partitionWhile(Predicate<? super T> predicate)
- Specified by:
partitionWhilein interfaceListIterable<T>- Specified by:
partitionWhilein interfaceMutableList<T>- Specified by:
partitionWhilein interfaceOrderedIterable<T>- Specified by:
partitionWhilein interfaceReversibleIterable<T>- Overrides:
partitionWhilein classAbstractMutableList<T>
-
equals
public boolean equals(Object that)
- Specified by:
equalsin interfaceCollection<T>- Specified by:
equalsin interfaceList<T>- Specified by:
equalsin interfaceListIterable<T>- Overrides:
equalsin classAbstractMutableList<T>
-
fastListEquals
public boolean fastListEquals(FastList<?> that)
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<T>- Specified by:
hashCodein interfaceList<T>- Specified by:
hashCodein interfaceListIterable<T>- Overrides:
hashCodein classAbstractMutableList<T>
-
replaceAll
public void replaceAll(UnaryOperator<T> operator)
- Specified by:
replaceAllin interfaceList<T>- Since:
- 10.0
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-