Class IntArrayStack
java.lang.Object
org.eclipse.collections.impl.stack.primitive.AbstractIntStack
org.eclipse.collections.impl.stack.mutable.primitive.IntArrayStack
- All Implemented Interfaces:
Externalizable,Serializable,IntIterable,OrderedIntIterable,PrimitiveIterable,IntStack,MutableIntStack
IntArrayStack is similar to
ArrayStack, and is memory-optimized for int primitives.
This file was automatically generated from template file primitiveArrayStack.stg.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()<V> MutableStack<V>collect(IntToObjectFunction<? extends V> function) booleaninthashCode()newEmpty()Creates a new empty IntArrayStack.static IntArrayStacknewStack(IntIterable items) static IntArrayStacknewStackFromTopToBottom(int... items) static IntArrayStackstatic IntArrayStacknewStackWith(int... items) intpop()pop(int count) voidpush(int item) voidreject(IntPredicate predicate) select(IntPredicate predicate) toStack()voidMethods inherited from class org.eclipse.collections.impl.stack.primitive.AbstractIntStack
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, contains, containsAll, containsAll, count, detectIfNone, each, forEachWithIndex, getFirst, indexOf, injectInto, injectIntoWithIndex, intIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, peek, peek, peekAt, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toStringMethods inherited from interface org.eclipse.collections.api.IntIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, intIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.stack.primitive.IntStack
peek, peek, peekAtMethods inherited from interface org.eclipse.collections.api.stack.primitive.MutableIntStack
collectWithIndex, rejectWithIndex, selectWithIndex, tapMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedIntIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex, rejectWithIndex, selectWithIndexMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
IntArrayStack
public IntArrayStack()
-
-
Method Details
-
newStackFromTopToBottom
-
newStackWith
-
newStack
-
newStackFromTopToBottom
-
push
public void push(int item) - Specified by:
pushin interfaceMutableIntStack
-
pop
public int pop()- Specified by:
popin interfaceMutableIntStack
-
pop
- Specified by:
popin interfaceMutableIntStack
-
select
- Specified by:
selectin interfaceIntIterable- Specified by:
selectin interfaceIntStack- Specified by:
selectin interfaceMutableIntStack- Specified by:
selectin interfaceOrderedIntIterable
-
reject
- Specified by:
rejectin interfaceIntIterable- Specified by:
rejectin interfaceIntStack- Specified by:
rejectin interfaceMutableIntStack- Specified by:
rejectin interfaceOrderedIntIterable
-
collect
- Specified by:
collectin interfaceIntIterable- Specified by:
collectin interfaceIntStack- Specified by:
collectin interfaceMutableIntStack- Specified by:
collectin interfaceOrderedIntIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableIntStack
-
toSortedList
- Specified by:
toSortedListin interfaceIntIterable
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableIntStack
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableIntStack
-
toImmutable
- Specified by:
toImmutablein interfaceIntStack
-
newEmpty
Creates a new empty IntArrayStack.- Specified by:
newEmptyin interfaceMutableIntStack- Since:
- 9.2.
-
equals
- Specified by:
equalsin interfaceIntStack- Overrides:
equalsin classAbstractIntStack
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceIntStack- Overrides:
hashCodein classAbstractIntStack
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-
toStack
- Specified by:
toStackin interfaceOrderedIntIterable
-