Class ArrayStack<T>
java.lang.Object
org.eclipse.collections.impl.stack.mutable.ArrayStack<T>
- All Implemented Interfaces:
Externalizable,Serializable,Iterable<T>,InternalIterable<T>,OrderedIterable<T>,RichIterable<T>,MutableStack<T>,StackIterable<T>
ArrayStack is a MutableStack which contains a FastList of data. ArrayStack iterates from top to bottom (LIFO order).
It behaves like FastList in terms of runtime complexity. The method push() is amortized constant time like
FastList.add(). The backing data structure grows and shrinks by 50% at a time, and size is constant. ArrayStack does
not extend Vector, as does the Java Stack, which was one of the reasons to create this data structure.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionArrayStack(int initialCapacity) ArrayStack(Iterable<T> items) ArrayStack(T... items) -
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(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) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()chunk(int size) voidclear()<V> ArrayStack<V><V,R extends Collection<V>>
RcollectBoolean(BooleanFunction<? super T> booleanFunction) <R extends MutableBooleanCollection>
RcollectBoolean(BooleanFunction<? super T> booleanFunction, R target) collectByte(ByteFunction<? super T> byteFunction) <R extends MutableByteCollection>
RcollectByte(ByteFunction<? super T> byteFunction, R target) collectChar(CharFunction<? super T> charFunction) <R extends MutableCharCollection>
RcollectChar(CharFunction<? super T> charFunction, R target) collectDouble(DoubleFunction<? super T> doubleFunction) <R extends MutableDoubleCollection>
RcollectDouble(DoubleFunction<? super T> doubleFunction, R target) collectFloat(FloatFunction<? super T> floatFunction) <R extends MutableFloatCollection>
RcollectFloat(FloatFunction<? super T> floatFunction, R target) <V> ArrayStack<V><V,R extends Collection<V>>
RcollectInt(IntFunction<? super T> intFunction) <R extends MutableIntCollection>
RcollectInt(IntFunction<? super T> intFunction, R target) collectLong(LongFunction<? super T> longFunction) <R extends MutableLongCollection>
RcollectLong(LongFunction<? super T> longFunction, R target) collectShort(ShortFunction<? super T> shortFunction) <R extends MutableShortCollection>
RcollectShort(ShortFunction<? super T> shortFunction, R target) <P,V> ArrayStack<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 targetCollection) booleanbooleancontainsAll(Collection<?> source) booleancontainsAllArguments(Object... elements) booleancontainsAllIterable(Iterable<?> source) <S> booleancorresponds(OrderedIterable<S> other, Predicate2<? super T, ? super S> predicate) int<P> intcountWith(Predicate2<? super T, ? super P> predicate, P parameter) detectIfNone(Predicate<? super T> predicate, Function0<? extends T> function) intdetectIndex(Predicate<? super T> predicate) detectOptional(Predicate<? super T> predicate) <P> TdetectWith(Predicate2<? super T, ? super P> predicate, P parameter) <P> TdetectWithIfNone(Predicate2<? super T, ? super P> predicate, P parameter, Function0<? extends T> function) detectWithOptional(Predicate2<? super T, ? super P> predicate, P parameter) distinct()voidboolean<V> ArrayStack<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) void<P> voidforEachWith(Procedure2<? super T, ? super P> procedure, P parameter) voidforEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure) voidforEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) getFirst()getLast()getOnly()<V> MutableListMultimap<V,T> <V,R extends MutableMultimap<V, T>>
R<V> MutableListMultimap<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) <V> MutableMap<V,T> groupByUniqueKey(Function<? super T, ? extends V> function) <V,R extends MutableMapIterable<V, T>>
RgroupByUniqueKey(Function<? super T, ? extends V> function, R target) inthashCode()booleanhasSameElements(OrderedIterable<T> other) intdoubleinjectInto(double injectedValue, DoubleObjectToDoubleFunction<? super T> doubleObjectToDoubleFunction) floatinjectInto(float injectedValue, FloatObjectToFloatFunction<? super T> floatObjectToFloatFunction) intinjectInto(int injectedValue, IntObjectToIntFunction<? super T> intObjectToIntFunction) longinjectInto(long injectedValue, LongObjectToLongFunction<? super T> longObjectToLongFunction) <IV> IVinjectInto(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) <R extends Collection<T>>
Rinto(R target) booleanisEmpty()iterator()makeString(String separator) makeString(String start, String separator, String end) max()max(Comparator<? super T> comparator) <V extends Comparable<? super V>>
Tmin()min(Comparator<? super T> comparator) <V extends Comparable<? super V>>
Tstatic <T> ArrayStack<T>newStack()static <T> ArrayStack<T>static <T> ArrayStack<T>newStackFromTopToBottom(Iterable<? extends T> items) static <T> ArrayStack<T>newStackFromTopToBottom(T... items) static <T> ArrayStack<T>newStackWith(T... items) booleannoneSatisfy(Predicate<? super T> predicate) <P> booleannoneSatisfyWith(Predicate2<? super T, ? super P> predicate, P parameter) booleannotEmpty()partitionWhile(Predicate<? super T> predicate) <P> PartitionMutableStack<T>partitionWith(Predicate2<? super T, ? super P> predicate, P parameter) peek()peek(int count) peekAt(int index) pop()pop(int count) <R extends Collection<T>>
Rpop(int count, R targetCollection) voidvoid<R extends Collection<T>>
R<P> ArrayStack<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 targetCollection) <R extends Collection<T>>
R<S> ArrayStack<S>selectInstancesOf(Class<S> clazz) <P> ArrayStack<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 targetCollection) intsize()<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) doublesumOfDouble(DoubleFunction<? super T> doubleFunction) doublesumOfFloat(FloatFunction<? super T> floatFunction) longsumOfInt(IntFunction<? super T> intFunction) longsumOfLong(LongFunction<? super T> longFunction) Object[]toArray()<T> T[]toArray(T[] a) toBag()<NK,NV> MutableBiMap<NK, NV> toBiMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) toList()<NK,NV> MutableMap<NK, NV> <NK,NV, R extends Map<NK, NV>>
RtoMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction, R target) toSet()toSortedBag(Comparator<? super T> comparator) toSortedList(Comparator<? super T> comparator) <NK,NV> MutableSortedMap<NK, NV> toSortedMap(Comparator<? super NK> comparator, Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) <NK,NV> MutableSortedMap<NK, NV> toSortedMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) <KK extends Comparable<? super KK>,NK, NV>
MutableSortedMap<NK,NV> toSortedMapBy(Function<? super NK, KK> sortBy, Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) toSortedSet(Comparator<? super T> comparator) toString()void<S> ArrayStack<Pair<T,S>> <S,R extends Collection<Pair<T, S>>>
R<R extends Collection<Pair<T,Integer>>>
RzipWithIndex(R target) Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEachMethods inherited from interface java.lang.Iterable
spliteratorMethods inherited from interface org.eclipse.collections.api.stack.MutableStack
aggregateBy, aggregateInPlaceBy, collectWithIndex, countBy, countByEach, countByWith, flatCollectWith, reduceByMethods inherited from interface org.eclipse.collections.api.ordered.OrderedIterable
collectWithIndex, getFirstOptional, getLastOptional, rejectWithIndex, selectWithIndexMethods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countByEach, countByWith, flatCollectWith, forEach, getAny, groupByAndCollect, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, reduce, reduceBy, reduceInPlace, reduceInPlace, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toSortedBagBy, toSortedListBy, toSortedSetByMethods inherited from interface org.eclipse.collections.api.stack.StackIterable
toStack
-
Constructor Details
-
ArrayStack
public ArrayStack() -
ArrayStack
public ArrayStack(int initialCapacity) -
ArrayStack
-
ArrayStack
-
-
Method Details
-
newStack
-
newStack
-
newStackWith
-
newStackFromTopToBottom
-
newStackFromTopToBottom
-
push
- Specified by:
pushin interfaceMutableStack<T>
-
pop
- Specified by:
popin interfaceMutableStack<T>
-
pop
- Specified by:
popin interfaceMutableStack<T>
-
pop
- Specified by:
popin interfaceMutableStack<T>
-
pop
- Specified by:
popin interfaceMutableStack<T>
-
clear
public void clear()- Specified by:
clearin interfaceMutableStack<T>
-
peek
- Specified by:
peekin interfaceStackIterable<T>
-
peek
- Specified by:
peekin interfaceStackIterable<T>
-
peekAt
- Specified by:
peekAtin interfaceStackIterable<T>
-
size
public int size()- Specified by:
sizein interfaceRichIterable<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceRichIterable<T>
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfaceRichIterable<T>
-
getFirst
- Specified by:
getFirstin interfaceOrderedIterable<T>- Specified by:
getFirstin interfaceRichIterable<T>- Specified by:
getFirstin interfaceStackIterable<T>
-
getLast
- Specified by:
getLastin interfaceOrderedIterable<T>- Specified by:
getLastin interfaceRichIterable<T>- Specified by:
getLastin interfaceStackIterable<T>
-
getOnly
- Specified by:
getOnlyin interfaceRichIterable<T>
-
contains
- Specified by:
containsin interfaceRichIterable<T>
-
containsAllIterable
- Specified by:
containsAllIterablein interfaceRichIterable<T>
-
containsAll
- Specified by:
containsAllin interfaceRichIterable<T>
-
containsAllArguments
- Specified by:
containsAllArgumentsin interfaceRichIterable<T>
-
collect
- Specified by:
collectin interfaceMutableStack<T>- Specified by:
collectin interfaceOrderedIterable<T>- Specified by:
collectin interfaceRichIterable<T>- Specified by:
collectin interfaceStackIterable<T>
-
collectBoolean
- Specified by:
collectBooleanin interfaceMutableStack<T>- Specified by:
collectBooleanin interfaceOrderedIterable<T>- Specified by:
collectBooleanin interfaceRichIterable<T>- Specified by:
collectBooleanin interfaceStackIterable<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
- Specified by:
collectBytein interfaceMutableStack<T>- Specified by:
collectBytein interfaceOrderedIterable<T>- Specified by:
collectBytein interfaceRichIterable<T>- Specified by:
collectBytein interfaceStackIterable<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
- Specified by:
collectCharin interfaceMutableStack<T>- Specified by:
collectCharin interfaceOrderedIterable<T>- Specified by:
collectCharin interfaceRichIterable<T>- Specified by:
collectCharin interfaceStackIterable<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
- Specified by:
collectDoublein interfaceMutableStack<T>- Specified by:
collectDoublein interfaceOrderedIterable<T>- Specified by:
collectDoublein interfaceRichIterable<T>- Specified by:
collectDoublein interfaceStackIterable<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
- Specified by:
collectFloatin interfaceMutableStack<T>- Specified by:
collectFloatin interfaceOrderedIterable<T>- Specified by:
collectFloatin interfaceRichIterable<T>- Specified by:
collectFloatin interfaceStackIterable<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
- Specified by:
collectIntin interfaceMutableStack<T>- Specified by:
collectIntin interfaceOrderedIterable<T>- Specified by:
collectIntin interfaceRichIterable<T>- Specified by:
collectIntin interfaceStackIterable<T>
-
collectInt
- 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
- Specified by:
collectLongin interfaceMutableStack<T>- Specified by:
collectLongin interfaceOrderedIterable<T>- Specified by:
collectLongin interfaceRichIterable<T>- Specified by:
collectLongin interfaceStackIterable<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
- Specified by:
collectShortin interfaceMutableStack<T>- Specified by:
collectShortin interfaceOrderedIterable<T>- Specified by:
collectShortin interfaceRichIterable<T>- Specified by:
collectShortin interfaceStackIterable<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
- Specified by:
collectin interfaceRichIterable<T>
-
collectWith
public <P,V> ArrayStack<V> collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter) - Specified by:
collectWithin interfaceMutableStack<T>- Specified by:
collectWithin interfaceOrderedIterable<T>- Specified by:
collectWithin interfaceRichIterable<T>- Specified by:
collectWithin interfaceStackIterable<T>
-
collectIf
public <V> ArrayStack<V> collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) - Specified by:
collectIfin interfaceMutableStack<T>- Specified by:
collectIfin interfaceOrderedIterable<T>- Specified by:
collectIfin interfaceRichIterable<T>- Specified by:
collectIfin interfaceStackIterable<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>
-
collectWith
public <P,V, R collectWithR extends Collection<V>> (Function2<? super T, ? super P, ? extends V> function, P parameter, R targetCollection) - Specified by:
collectWithin interfaceRichIterable<T>
-
flatCollect
- Specified by:
flatCollectin interfaceMutableStack<T>- Specified by:
flatCollectin interfaceOrderedIterable<T>- Specified by:
flatCollectin interfaceRichIterable<T>- Specified by:
flatCollectin interfaceStackIterable<T>
-
flatCollect
public <V,R extends Collection<V>> R flatCollect(Function<? super T, ? extends Iterable<V>> function, R target) - Specified by:
flatCollectin interfaceRichIterable<T>
-
select
- Specified by:
selectin interfaceMutableStack<T>- Specified by:
selectin interfaceOrderedIterable<T>- Specified by:
selectin interfaceRichIterable<T>- Specified by:
selectin interfaceStackIterable<T>
-
selectWith
- Specified by:
selectWithin interfaceMutableStack<T>- Specified by:
selectWithin interfaceOrderedIterable<T>- Specified by:
selectWithin interfaceRichIterable<T>- Specified by:
selectWithin interfaceStackIterable<T>
-
select
- Specified by:
selectin interfaceRichIterable<T>
-
selectInstancesOf
- Specified by:
selectInstancesOfin interfaceMutableStack<T>- Specified by:
selectInstancesOfin interfaceOrderedIterable<T>- Specified by:
selectInstancesOfin interfaceRichIterable<T>- Specified by:
selectInstancesOfin interfaceStackIterable<T>
-
selectWith
public <P,R extends Collection<T>> R selectWith(Predicate2<? super T, ? super P> predicate, P parameter, R targetCollection) - Specified by:
selectWithin interfaceRichIterable<T>
-
reject
- Specified by:
rejectin interfaceMutableStack<T>- Specified by:
rejectin interfaceOrderedIterable<T>- Specified by:
rejectin interfaceRichIterable<T>- Specified by:
rejectin interfaceStackIterable<T>
-
reject
- Specified by:
rejectin interfaceRichIterable<T>
-
rejectWith
- Specified by:
rejectWithin interfaceMutableStack<T>- Specified by:
rejectWithin interfaceOrderedIterable<T>- Specified by:
rejectWithin interfaceRichIterable<T>- Specified by:
rejectWithin interfaceStackIterable<T>
-
rejectWith
public <P,R extends Collection<T>> R rejectWith(Predicate2<? super T, ? super P> predicate, P parameter, R targetCollection) - Specified by:
rejectWithin interfaceRichIterable<T>
-
detect
- Specified by:
detectin interfaceRichIterable<T>
-
detectWith
- Specified by:
detectWithin interfaceRichIterable<T>
-
detectOptional
- Specified by:
detectOptionalin interfaceRichIterable<T>
-
detectWithOptional
- Specified by:
detectWithOptionalin interfaceRichIterable<T>
-
detectIfNone
- Specified by:
detectIfNonein interfaceRichIterable<T>
-
detectWithIfNone
public <P> T detectWithIfNone(Predicate2<? super T, ? super P> predicate, P parameter, Function0<? extends T> function) - Specified by:
detectWithIfNonein interfaceRichIterable<T>
-
partition
- Specified by:
partitionin interfaceMutableStack<T>- Specified by:
partitionin interfaceOrderedIterable<T>- Specified by:
partitionin interfaceRichIterable<T>- Specified by:
partitionin interfaceStackIterable<T>
-
partitionWith
public <P> PartitionMutableStack<T> partitionWith(Predicate2<? super T, ? super P> predicate, P parameter) - Specified by:
partitionWithin interfaceMutableStack<T>- Specified by:
partitionWithin interfaceOrderedIterable<T>- Specified by:
partitionWithin interfaceRichIterable<T>- Specified by:
partitionWithin interfaceStackIterable<T>
-
zip
- Specified by:
zipin interfaceMutableStack<T>- Specified by:
zipin interfaceOrderedIterable<T>- Specified by:
zipin interfaceRichIterable<T>- Specified by:
zipin interfaceStackIterable<T>
-
zip
- Specified by:
zipin interfaceOrderedIterable<T>- Specified by:
zipin interfaceRichIterable<T>
-
zipWithIndex
- Specified by:
zipWithIndexin interfaceMutableStack<T>- Specified by:
zipWithIndexin interfaceOrderedIterable<T>- Specified by:
zipWithIndexin interfaceRichIterable<T>- Specified by:
zipWithIndexin interfaceStackIterable<T>
-
zipWithIndex
- Specified by:
zipWithIndexin interfaceOrderedIterable<T>- Specified by:
zipWithIndexin interfaceRichIterable<T>
-
count
- Specified by:
countin interfaceRichIterable<T>
-
countWith
- Specified by:
countWithin interfaceRichIterable<T>
-
anySatisfy
- Specified by:
anySatisfyin interfaceRichIterable<T>
-
anySatisfyWith
- Specified by:
anySatisfyWithin interfaceRichIterable<T>
-
allSatisfy
- Specified by:
allSatisfyin interfaceRichIterable<T>
-
allSatisfyWith
- Specified by:
allSatisfyWithin interfaceRichIterable<T>
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceRichIterable<T>
-
noneSatisfyWith
- Specified by:
noneSatisfyWithin interfaceRichIterable<T>
-
injectInto
- Specified by:
injectIntoin interfaceRichIterable<T>
-
injectInto
- Specified by:
injectIntoin interfaceRichIterable<T>
-
injectInto
public long injectInto(long injectedValue, LongObjectToLongFunction<? super T> longObjectToLongFunction) - Specified by:
injectIntoin interfaceRichIterable<T>
-
injectInto
public double injectInto(double injectedValue, DoubleObjectToDoubleFunction<? super T> doubleObjectToDoubleFunction) - Specified by:
injectIntoin interfaceRichIterable<T>
-
injectInto
public float injectInto(float injectedValue, FloatObjectToFloatFunction<? super T> floatObjectToFloatFunction) - Specified by:
injectIntoin interfaceRichIterable<T>
-
sumOfInt
- Specified by:
sumOfIntin interfaceRichIterable<T>
-
sumOfFloat
- Specified by:
sumOfFloatin interfaceRichIterable<T>
-
sumOfLong
- Specified by:
sumOfLongin interfaceRichIterable<T>
-
sumOfDouble
- Specified by:
sumOfDoublein interfaceRichIterable<T>
-
sumByInt
public <V> MutableObjectLongMap<V> sumByInt(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function) - Specified by:
sumByIntin interfaceMutableStack<T>- Specified by:
sumByIntin interfaceRichIterable<T>
-
sumByFloat
public <V> MutableObjectDoubleMap<V> sumByFloat(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function) - Specified by:
sumByFloatin interfaceMutableStack<T>- Specified by:
sumByFloatin interfaceRichIterable<T>
-
sumByLong
public <V> MutableObjectLongMap<V> sumByLong(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function) - Specified by:
sumByLongin interfaceMutableStack<T>- Specified by:
sumByLongin interfaceRichIterable<T>
-
sumByDouble
public <V> MutableObjectDoubleMap<V> sumByDouble(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function) - Specified by:
sumByDoublein interfaceMutableStack<T>- Specified by:
sumByDoublein interfaceRichIterable<T>
-
max
- Specified by:
maxin interfaceOrderedIterable<T>- Specified by:
maxin interfaceRichIterable<T>
-
max
- Specified by:
maxin interfaceRichIterable<T>
-
maxBy
- Specified by:
maxByin interfaceRichIterable<T>
-
min
- Specified by:
minin interfaceOrderedIterable<T>- Specified by:
minin interfaceRichIterable<T>
-
min
- Specified by:
minin interfaceRichIterable<T>
-
minBy
- Specified by:
minByin interfaceRichIterable<T>
-
makeString
- Specified by:
makeStringin interfaceRichIterable<T>
-
makeString
- Specified by:
makeStringin interfaceRichIterable<T>
-
makeString
- Specified by:
makeStringin interfaceRichIterable<T>
-
appendString
- Specified by:
appendStringin interfaceRichIterable<T>
-
appendString
- Specified by:
appendStringin interfaceRichIterable<T>
-
appendString
- Specified by:
appendStringin interfaceRichIterable<T>
-
groupBy
- Specified by:
groupByin interfaceMutableStack<T>- Specified by:
groupByin interfaceOrderedIterable<T>- Specified by:
groupByin interfaceRichIterable<T>- Specified by:
groupByin interfaceStackIterable<T>
-
groupBy
public <V,R extends MutableMultimap<V, R groupByT>> (Function<? super T, ? extends V> function, R target) - Specified by:
groupByin interfaceRichIterable<T>
-
groupByEach
- Specified by:
groupByEachin interfaceMutableStack<T>- Specified by:
groupByEachin interfaceOrderedIterable<T>- Specified by:
groupByEachin interfaceRichIterable<T>- Specified by:
groupByEachin interfaceStackIterable<T>
-
groupByEach
public <V,R extends MutableMultimap<V, R groupByEachT>> (Function<? super T, ? extends Iterable<V>> function, R target) - Specified by:
groupByEachin interfaceRichIterable<T>
-
groupByUniqueKey
- Specified by:
groupByUniqueKeyin interfaceMutableStack<T>- Specified by:
groupByUniqueKeyin interfaceRichIterable<T>
-
groupByUniqueKey
public <V,R extends MutableMapIterable<V, R groupByUniqueKeyT>> (Function<? super T, ? extends V> function, R target) - Specified by:
groupByUniqueKeyin interfaceRichIterable<T>
-
chunk
- Specified by:
chunkin interfaceRichIterable<T>
-
tap
- Specified by:
tapin interfaceMutableStack<T>- Specified by:
tapin interfaceOrderedIterable<T>- Specified by:
tapin interfaceRichIterable<T>- Specified by:
tapin interfaceStackIterable<T>
-
each
- Specified by:
eachin interfaceRichIterable<T>
-
forEachWith
- Specified by:
forEachWithin interfaceInternalIterable<T>
-
forEachWithIndex
- Specified by:
forEachWithIndexin interfaceInternalIterable<T>- Specified by:
forEachWithIndexin interfaceOrderedIterable<T>
-
into
- Specified by:
intoin interfaceRichIterable<T>
-
toList
- Specified by:
toListin interfaceRichIterable<T>
-
toSortedList
- Specified by:
toSortedListin interfaceRichIterable<T>
-
toSortedList
- Specified by:
toSortedListin interfaceRichIterable<T>
-
toSet
- Specified by:
toSetin interfaceRichIterable<T>
-
toSortedSet
- Specified by:
toSortedSetin interfaceRichIterable<T>
-
toSortedSet
- Specified by:
toSortedSetin interfaceRichIterable<T>
-
toImmutable
- Specified by:
toImmutablein interfaceStackIterable<T>
-
toBag
- Specified by:
toBagin interfaceRichIterable<T>
-
toSortedBag
- Specified by:
toSortedBagin interfaceRichIterable<T>
-
toSortedBag
- Specified by:
toSortedBagin interfaceRichIterable<T>
-
toMap
public <NK,NV> MutableMap<NK,NV> toMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) - Specified by:
toMapin interfaceRichIterable<T>
-
toMap
public <NK,NV, R toMapR extends Map<NK, NV>> (Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction, R target) - Specified by:
toMapin interfaceRichIterable<T>
-
toSortedMap
public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) - Specified by:
toSortedMapin interfaceRichIterable<T>
-
toSortedMap
public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Comparator<? super NK> comparator, Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) - Specified by:
toSortedMapin interfaceRichIterable<T>
-
toSortedMapBy
public <KK extends Comparable<? super KK>,NK, MutableSortedMap<NK,NV> NV> toSortedMapBy(Function<? super NK, KK> sortBy, Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) - Specified by:
toSortedMapByin interfaceRichIterable<T>
-
toBiMap
public <NK,NV> MutableBiMap<NK,NV> toBiMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) - Specified by:
toBiMapin interfaceRichIterable<T>
-
asLazy
- Specified by:
asLazyin interfaceRichIterable<T>
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableStack<T>
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableStack<T>
-
toArray
- Specified by:
toArrayin interfaceRichIterable<T>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceRichIterable<T>
-
iterator
-
equals
- Specified by:
equalsin interfaceStackIterable<T>- Overrides:
equalsin classObject
-
toString
- Specified by:
toStringin interfaceRichIterable<T>- Specified by:
toStringin interfaceStackIterable<T>- Overrides:
toStringin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceStackIterable<T>- Overrides:
hashCodein classObject
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
takeWhile
- Specified by:
takeWhilein interfaceMutableStack<T>- Specified by:
takeWhilein interfaceOrderedIterable<T>- Specified by:
takeWhilein interfaceStackIterable<T>
-
dropWhile
- Specified by:
dropWhilein interfaceMutableStack<T>- Specified by:
dropWhilein interfaceOrderedIterable<T>- Specified by:
dropWhilein interfaceStackIterable<T>
-
partitionWhile
- Specified by:
partitionWhilein interfaceMutableStack<T>- Specified by:
partitionWhilein interfaceOrderedIterable<T>- Specified by:
partitionWhilein interfaceStackIterable<T>
-
distinct
- Specified by:
distinctin interfaceMutableStack<T>- Specified by:
distinctin interfaceOrderedIterable<T>- Specified by:
distinctin interfaceStackIterable<T>
-
indexOf
- Specified by:
indexOfin interfaceOrderedIterable<T>
-
corresponds
- Specified by:
correspondsin interfaceOrderedIterable<T>
-
hasSameElements
-
forEach
- Specified by:
forEachin interfaceOrderedIterable<T>
-
forEachWithIndex
public void forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure) - Specified by:
forEachWithIndexin interfaceOrderedIterable<T>
-
detectIndex
- Specified by:
detectIndexin interfaceOrderedIterable<T>
-