public interface ByteStack extends OrderedByteIterable
| Modifier and Type | Method and Description |
|---|---|
<V> StackIterable<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> StackIterable<V> |
collectWithIndex(ByteIntToObjectFunction<? extends V> function)
Returns a new StackIterable using results obtained by applying the specified function to each element
and its corresponding index.
|
boolean |
equals(Object o)
Follows the same general contract as
StackIterable.equals(Object). |
int |
hashCode()
Follows the same general contract as
StackIterable.hashCode(). |
byte |
peek()
Returns the top of the stack.
|
ByteList |
peek(int count)
Returns ByteList of the number of elements specified by the count, beginning with the top of the stack.
|
byte |
peekAt(int index)
Returns the element at the specified index.
|
ByteStack |
reject(BytePredicate predicate)
Returns a new ByteIterable with all of the elements in the ByteIterable that
return false for the specified predicate.
|
ByteStack |
select(BytePredicate predicate)
Returns a new ByteIterable with all of the elements in the ByteIterable that
return true for the specified predicate.
|
default ByteStack |
tap(ByteProcedure procedure) |
ImmutableByteStack |
toImmutable() |
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndexallSatisfy, 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, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringbyte peek()
ByteList peek(int count)
byte peekAt(int index)
index - the location to peek intoByteStack select(BytePredicate predicate)
ByteIterableselect in interface ByteIterableselect in interface OrderedByteIterableByteStack reject(BytePredicate predicate)
ByteIterablereject in interface ByteIterablereject in interface OrderedByteIterabledefault ByteStack tap(ByteProcedure procedure)
tap in interface ByteIterable<V> StackIterable<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterablecollect in interface ByteIterablecollect in interface OrderedByteIterabledefault <V> StackIterable<V> collectWithIndex(ByteIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedByteIterableboolean equals(Object o)
StackIterable.equals(Object).int hashCode()
StackIterable.hashCode().ImmutableByteStack toImmutable()
Copyright © 2004–2021. All rights reserved.