Externalizable
, Serializable
, OrderedShortIterable
, PrimitiveIterable
, ShortIterable
, MutableShortStack
, ShortStack
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 | 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.
|
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() |
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(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(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, 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, toString
collectWithIndex, tap
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, 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, reduce, reduceIfEmpty, reject, select, shortIterator, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray
public 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)
MutableShortStack
push
in interface MutableShortStack
public short pop()
MutableShortStack
pop
in interface MutableShortStack
public ShortList pop(int count)
MutableShortStack
pop
in interface MutableShortStack
public MutableShortStack select(ShortPredicate predicate)
ShortIterable
select
in interface MutableShortStack
select
in interface OrderedShortIterable
select
in interface ShortIterable
select
in interface ShortStack
public MutableShortStack reject(ShortPredicate predicate)
ShortIterable
reject
in interface MutableShortStack
reject
in interface OrderedShortIterable
reject
in interface ShortIterable
reject
in interface ShortStack
public <V> MutableStack<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterable
collect
in interface MutableShortStack
collect
in interface OrderedShortIterable
collect
in interface ShortIterable
collect
in interface ShortStack
public void clear()
MutableShortStack
clear
in interface MutableShortStack
public MutableShortList toSortedList()
toSortedList
in interface ShortIterable
public MutableShortStack asUnmodifiable()
asUnmodifiable
in interface MutableShortStack
public MutableShortStack asSynchronized()
asSynchronized
in interface MutableShortStack
public ImmutableShortStack toImmutable()
toImmutable
in interface ShortStack
public ShortArrayStack newEmpty()
newEmpty
in interface MutableShortStack
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
IOException
Copyright © 2004–2019. All rights reserved.