Externalizable, Serializable, ByteIterable, OrderedByteIterable, PrimitiveIterable, ByteStack, MutableByteStack@NotThreadSafe public final class ByteArrayStack extends AbstractByteStack implements MutableByteStack, Externalizable
ArrayStack, and is memory-optimized for byte primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor | Description |
|---|---|
ByteArrayStack() |
| Modifier and Type | Method | Description |
|---|---|---|
MutableByteStack |
asSynchronized() |
|
MutableByteStack |
asUnmodifiable() |
|
void |
clear() |
Clears the Stack
|
<V> MutableStack<V> |
collect(ByteToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
static ByteArrayStack |
newStack(ByteIterable items) |
|
static ByteArrayStack |
newStackFromTopToBottom(byte... items) |
|
static ByteArrayStack |
newStackFromTopToBottom(ByteIterable items) |
|
static ByteArrayStack |
newStackWith(byte... items) |
|
byte |
pop() |
Removes and returns the top element of the stack.
|
ByteList |
pop(int count) |
Removes and returns a ByteList of the number of elements specified by the count, beginning with the top of the stack.
|
void |
push(byte item) |
Adds an item to the top of the stack.
|
void |
readExternal(ObjectInput in) |
|
MutableByteStack |
reject(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return false for the specified predicate.
|
MutableByteStack |
select(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return true for the specified predicate.
|
ImmutableByteStack |
toImmutable() |
|
MutableByteList |
toSortedList() |
|
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, byteIterator, 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, size, sum, toArray, toBag, toList, toSet, toSortedArray, toStringallSatisfy, anySatisfy, asLazy, average, byteIterator, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArrayequals, hashCode, peek, peek, peekAtforEachWithIndex, getFirst, indexOf, injectIntoWithIndexappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic static ByteArrayStack newStackFromTopToBottom(byte... items)
public static ByteArrayStack newStackWith(byte... items)
public static ByteArrayStack newStack(ByteIterable items)
public static ByteArrayStack newStackFromTopToBottom(ByteIterable items)
public void push(byte item)
MutableByteStackpush in interface MutableByteStackpublic byte pop()
MutableByteStackpop in interface MutableByteStackpublic ByteList pop(int count)
MutableByteStackpop in interface MutableByteStackpublic MutableByteStack select(BytePredicate predicate)
ByteIterableselect in interface ByteIterableselect in interface ByteStackselect in interface MutableByteStackselect in interface OrderedByteIterablepublic MutableByteStack reject(BytePredicate predicate)
ByteIterablereject in interface ByteIterablereject in interface ByteStackreject in interface MutableByteStackreject in interface OrderedByteIterablepublic <V> MutableStack<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterablecollect in interface ByteIterablecollect in interface ByteStackcollect in interface MutableByteStackcollect in interface OrderedByteIterablepublic void clear()
MutableByteStackclear in interface MutableByteStackpublic MutableByteList toSortedList()
toSortedList in interface ByteIterablepublic MutableByteStack asUnmodifiable()
asUnmodifiable in interface MutableByteStackpublic MutableByteStack asSynchronized()
asSynchronized in interface MutableByteStackpublic ImmutableByteStack toImmutable()
toImmutable in interface ByteStackpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2017. All rights reserved.