public class IntArrayStack extends AbstractIntStack implements MutableIntStack, Externalizable
ArrayStack, and is memory-optimized for int primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor and Description |
|---|
IntArrayStack() |
| Modifier and Type | Method and Description |
|---|---|
MutableIntStack |
asSynchronized() |
MutableIntStack |
asUnmodifiable() |
void |
clear() |
<V> MutableStack<V> |
collect(IntToObjectFunction<? extends V> function) |
boolean |
equals(Object otherStack) |
int |
hashCode() |
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() |
IntList |
pop(int count) |
void |
push(int item) |
void |
readExternal(ObjectInput in) |
MutableIntStack |
reject(IntPredicate predicate) |
MutableIntStack |
select(IntPredicate predicate) |
ImmutableIntStack |
toImmutable() |
MutableIntList |
toSortedList() |
void |
writeExternal(ObjectOutput out) |
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, toStringcollectWithIndex, rejectWithIndex, selectWithIndex, tappeek, peek, peekAtcollectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex, rejectWithIndex, selectWithIndexallSatisfy, 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, toSortedListByappendString, 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)
push in interface MutableIntStackpublic int pop()
pop in interface MutableIntStackpublic IntList pop(int count)
pop in interface MutableIntStackpublic MutableIntStack select(IntPredicate predicate)
select in interface IntIterableselect in interface OrderedIntIterableselect in interface IntStackselect in interface MutableIntStackpublic MutableIntStack reject(IntPredicate predicate)
reject in interface IntIterablereject in interface OrderedIntIterablereject in interface IntStackreject in interface MutableIntStackpublic <V> MutableStack<V> collect(IntToObjectFunction<? extends V> function)
collect in interface IntIterablecollect in interface OrderedIntIterablecollect in interface IntStackcollect in interface MutableIntStackpublic void clear()
clear 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 boolean equals(Object otherStack)
equals in interface IntStackequals in class AbstractIntStackpublic int hashCode()
hashCode in interface IntStackhashCode in class AbstractIntStackpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2022. All rights reserved.