java.io.Externalizable, java.io.Serializable, IntIterable, OrderedIntIterable, PrimitiveIterable, IntStack, MutableIntStackpublic class IntArrayStack extends AbstractIntStack implements MutableIntStack, java.io.Externalizable
ArrayStack, and is memory-optimized for int primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor | Description |
|---|---|
IntArrayStack() |
| Modifier and Type | Method | Description |
|---|---|---|
MutableIntStack |
asSynchronized() |
|
MutableIntStack |
asUnmodifiable() |
|
void |
clear() |
Clears the Stack
|
<V> MutableStack<V> |
collect(IntToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
IntArrayStack |
newEmpty() |
Creates a new empty IntArrayStack.
|
static IntArrayStack |
newStack(IntIterable items) |
|
static IntArrayStack |
newStackFromTopToBottom(int... items) |
|
static IntArrayStack |
newStackFromTopToBottom(IntIterable items) |
|
static IntArrayStack |
newStackWith(int... items) |
|
int |
pop() |
Removes and returns the top element of the stack.
|
IntList |
pop(int count) |
Removes and returns a IntList of the number of elements specified by the count, beginning with the top of the stack.
|
void |
push(int item) |
Adds an item to the top of the stack.
|
void |
readExternal(java.io.ObjectInput in) |
|
MutableIntStack |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
MutableIntStack |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
ImmutableIntStack |
toImmutable() |
|
MutableIntList |
toSortedList() |
|
void |
writeExternal(java.io.ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, contains, containsAll, containsAll, count, detectIfNone, each, equals, forEach, forEachWithIndex, getFirst, hashCode, indexOf, injectInto, injectIntoWithIndex, intIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, peek, peek, peekAt, size, sum, toArray, toBag, toList, toSet, toSortedArray, toStringallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, intIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArrayequals, hashCode, peek, peek, peekAtcollectWithIndex, tapcollectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndexappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic static IntArrayStack newStackFromTopToBottom(int... items)
public static IntArrayStack newStackWith(int... items)
public static IntArrayStack newStack(IntIterable items)
public static IntArrayStack newStackFromTopToBottom(IntIterable items)
public void push(int item)
MutableIntStackpush in interface MutableIntStackpublic int pop()
MutableIntStackpop in interface MutableIntStackpublic IntList pop(int count)
MutableIntStackpop in interface MutableIntStackpublic MutableIntStack select(IntPredicate predicate)
IntIterableselect in interface IntIterableselect in interface IntStackselect in interface MutableIntStackselect in interface OrderedIntIterablepublic MutableIntStack reject(IntPredicate predicate)
IntIterablereject in interface IntIterablereject in interface IntStackreject in interface MutableIntStackreject in interface OrderedIntIterablepublic <V> MutableStack<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface IntIterablecollect in interface IntStackcollect in interface MutableIntStackcollect in interface OrderedIntIterablepublic void clear()
MutableIntStackclear in interface MutableIntStackpublic MutableIntList toSortedList()
toSortedList in interface IntIterablepublic MutableIntStack asUnmodifiable()
asUnmodifiable in interface MutableIntStackpublic MutableIntStack asSynchronized()
asSynchronized in interface MutableIntStackpublic ImmutableIntStack toImmutable()
toImmutable in interface IntStackpublic IntArrayStack newEmpty()
newEmpty in interface MutableIntStackpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOExceptionCopyright © 2004–2020. All rights reserved.