public 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 and Description |
|---|
ByteArrayStack() |
| Modifier and Type | Method and Description |
|---|---|
MutableByteStack |
asSynchronized() |
MutableByteStack |
asUnmodifiable() |
void |
clear() |
<V> MutableStack<V> |
collect(ByteToObjectFunction<? extends V> function) |
boolean |
equals(Object otherStack) |
int |
hashCode() |
ByteArrayStack |
newEmpty()
Creates a new empty ByteArrayStack.
|
static ByteArrayStack |
newStack(ByteIterable items) |
static ByteArrayStack |
newStackFromTopToBottom(byte... items) |
static ByteArrayStack |
newStackFromTopToBottom(ByteIterable items) |
static ByteArrayStack |
newStackWith(byte... items) |
byte |
pop() |
ByteList |
pop(int count) |
void |
push(byte item) |
void |
readExternal(ObjectInput in) |
MutableByteStack |
reject(BytePredicate predicate) |
MutableByteStack |
select(BytePredicate predicate) |
ImmutableByteStack |
toImmutable() |
MutableByteList |
toSortedList() |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, byteIterator, chunk, contains, containsAll, containsAll, count, detectIfNone, each, forEachWithIndex, getFirst, indexOf, injectInto, injectIntoWithIndex, 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, byteIterator, 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, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedListBy, toSortedListByappendString, 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)
push in interface MutableByteStackpublic byte pop()
pop in interface MutableByteStackpublic ByteList pop(int count)
pop in interface MutableByteStackpublic MutableByteStack select(BytePredicate predicate)
select in interface ByteIterableselect in interface OrderedByteIterableselect in interface ByteStackselect in interface MutableByteStackpublic MutableByteStack reject(BytePredicate predicate)
reject in interface ByteIterablereject in interface OrderedByteIterablereject in interface ByteStackreject in interface MutableByteStackpublic <V> MutableStack<V> collect(ByteToObjectFunction<? extends V> function)
collect in interface ByteIterablecollect in interface OrderedByteIterablecollect in interface ByteStackcollect in interface MutableByteStackpublic void clear()
clear 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 ByteArrayStack newEmpty()
newEmpty in interface MutableByteStackpublic boolean equals(Object otherStack)
equals in interface ByteStackequals in class AbstractByteStackpublic int hashCode()
hashCode in interface ByteStackhashCode in class AbstractByteStackpublic 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.