public class ShortArrayStack extends AbstractShortStack implements MutableShortStack, Externalizable
ArrayStack, and is memory-optimized for short primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor and Description |
|---|
ShortArrayStack() |
| Modifier and Type | Method and Description |
|---|---|
MutableShortStack |
asSynchronized() |
MutableShortStack |
asUnmodifiable() |
void |
clear() |
<V> MutableStack<V> |
collect(ShortToObjectFunction<? extends V> function) |
boolean |
equals(Object otherStack) |
int |
hashCode() |
ShortArrayStack |
newEmpty()
Creates a new empty ShortArrayStack.
|
static ShortArrayStack |
newStack(ShortIterable items) |
static ShortArrayStack |
newStackFromTopToBottom(short... items) |
static ShortArrayStack |
newStackFromTopToBottom(ShortIterable items) |
static ShortArrayStack |
newStackWith(short... items) |
short |
pop() |
ShortList |
pop(int count) |
void |
push(short item) |
void |
readExternal(ObjectInput in) |
MutableShortStack |
reject(ShortPredicate predicate) |
MutableShortStack |
select(ShortPredicate predicate) |
ImmutableShortStack |
toImmutable() |
MutableShortList |
toSortedList() |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, contains, containsAll, containsAll, count, detectIfNone, each, forEachWithIndex, getFirst, indexOf, injectInto, injectIntoWithIndex, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, peek, peek, peekAt, shortIterator, 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, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, shortIterator, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic static ShortArrayStack newStackFromTopToBottom(short... items)
public static ShortArrayStack newStackWith(short... items)
public static ShortArrayStack newStack(ShortIterable items)
public static ShortArrayStack newStackFromTopToBottom(ShortIterable items)
public void push(short item)
push in interface MutableShortStackpublic short pop()
pop in interface MutableShortStackpublic ShortList pop(int count)
pop in interface MutableShortStackpublic MutableShortStack select(ShortPredicate predicate)
select in interface OrderedShortIterableselect in interface ShortIterableselect in interface MutableShortStackselect in interface ShortStackpublic MutableShortStack reject(ShortPredicate predicate)
reject in interface OrderedShortIterablereject in interface ShortIterablereject in interface MutableShortStackreject in interface ShortStackpublic <V> MutableStack<V> collect(ShortToObjectFunction<? extends V> function)
collect in interface OrderedShortIterablecollect in interface ShortIterablecollect in interface MutableShortStackcollect in interface ShortStackpublic void clear()
clear in interface MutableShortStackpublic MutableShortList toSortedList()
toSortedList in interface ShortIterablepublic MutableShortStack asUnmodifiable()
asUnmodifiable in interface MutableShortStackpublic MutableShortStack asSynchronized()
asSynchronized in interface MutableShortStackpublic ImmutableShortStack toImmutable()
toImmutable in interface ShortStackpublic ShortArrayStack newEmpty()
newEmpty in interface MutableShortStackpublic boolean equals(Object otherStack)
equals in interface ShortStackequals in class AbstractShortStackpublic int hashCode()
hashCode in interface ShortStackhashCode in class AbstractShortStackpublic 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.