ByteIterable, ByteStack, OrderedByteIterable, PrimitiveIterableByteArrayStack, SynchronizedByteStack, UnmodifiableByteStackpublic interface MutableByteStack extends ByteStack
| 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.
|
default <V> MutableStack<V> |
collectWithIndex(ByteIntToObjectFunction<? extends V> function) |
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
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.
|
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.
|
default MutableByteStack |
tap(ByteProcedure procedure) |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, byteIterator, 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, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListequals, hashCode, peek, peek, peekAt, toImmutablecollectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndexappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid push(byte item)
byte pop()
ByteList pop(int count)
void clear()
MutableByteStack select(BytePredicate predicate)
ByteIterableselect in interface ByteIterableselect in interface ByteStackselect in interface OrderedByteIterableMutableByteStack reject(BytePredicate predicate)
ByteIterablereject in interface ByteIterablereject in interface ByteStackreject in interface OrderedByteIterabledefault MutableByteStack tap(ByteProcedure procedure)
tap in interface ByteIterabletap in interface ByteStack<V> MutableStack<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterablecollect in interface ByteIterablecollect in interface ByteStackcollect in interface OrderedByteIterabledefault <V> MutableStack<V> collectWithIndex(ByteIntToObjectFunction<? extends V> function)
collectWithIndex in interface ByteStackcollectWithIndex in interface OrderedByteIterableMutableByteStack asUnmodifiable()
MutableByteStack asSynchronized()
Copyright © 2004–2018. All rights reserved.