java.io.Externalizable, java.io.Serializable, OrderedShortIterable, PrimitiveIterable, ShortIterable, MutableShortStack, ShortStackpublic final class ShortArrayStack extends AbstractShortStack implements MutableShortStack, java.io.Externalizable
ArrayStack, and is memory-optimized for short primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor | Description |
|---|---|
ShortArrayStack() |
| Modifier and Type | Method | Description |
|---|---|---|
MutableShortStack |
asSynchronized() |
|
MutableShortStack |
asUnmodifiable() |
|
void |
clear() |
Clears the Stack
|
<V> MutableStack<V> |
collect(ShortToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
static ShortArrayStack |
newStack(ShortIterable items) |
|
static ShortArrayStack |
newStackFromTopToBottom(short... items) |
|
static ShortArrayStack |
newStackFromTopToBottom(ShortIterable items) |
|
static ShortArrayStack |
newStackWith(short... items) |
|
short |
pop() |
Removes and returns the top element of the stack.
|
ShortList |
pop(int count) |
Removes and returns a ShortList of the number of elements specified by the count, beginning with the top of the stack.
|
void |
push(short item) |
Adds an item to the top of the stack.
|
void |
readExternal(java.io.ObjectInput in) |
|
MutableShortStack |
reject(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
MutableShortStack |
select(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified predicate.
|
ImmutableShortStack |
toImmutable() |
|
MutableShortList |
toSortedList() |
|
void |
writeExternal(java.io.ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, equals, forEach, forEachWithIndex, getFirst, hashCode, indexOf, injectInto, injectIntoWithIndex, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, peek, peek, peekAt, shortIterator, size, sum, toArray, toBag, toList, toSet, toSortedArray, toStringcollectWithIndex, tapcollectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndexappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, shortIterator, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArraypublic 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)
MutableShortStackpush in interface MutableShortStackpublic short pop()
MutableShortStackpop in interface MutableShortStackpublic ShortList pop(int count)
MutableShortStackpop in interface MutableShortStackpublic MutableShortStack select(ShortPredicate predicate)
ShortIterableselect in interface MutableShortStackselect in interface OrderedShortIterableselect in interface ShortIterableselect in interface ShortStackpublic MutableShortStack reject(ShortPredicate predicate)
ShortIterablereject in interface MutableShortStackreject in interface OrderedShortIterablereject in interface ShortIterablereject in interface ShortStackpublic <V> MutableStack<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterablecollect in interface MutableShortStackcollect in interface OrderedShortIterablecollect in interface ShortIterablecollect in interface ShortStackpublic void clear()
MutableShortStackclear 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 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–2018. All rights reserved.