public interface ShortStack extends OrderedShortIterable
Modifier and Type | Method and Description |
---|---|
<V> StackIterable<V> |
collect(ShortToObjectFunction<? extends V> function) |
boolean |
equals(Object o)
Follows the same general contract as
StackIterable.equals(Object) . |
int |
hashCode()
Follows the same general contract as
StackIterable.hashCode() . |
short |
peek()
Returns the top of the stack.
|
ShortList |
peek(int count)
Returns ShortList of the number of elements specified by the count, beginning with the top of the stack.
|
short |
peekAt(int index)
Returns the element at the specified index.
|
ShortStack |
reject(ShortPredicate predicate) |
ShortStack |
select(ShortPredicate predicate) |
ImmutableShortStack |
toImmutable() |
forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, shortIterator, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
short peek()
ShortList peek(int count)
short peekAt(int index)
index
- the location to peek intoShortStack select(ShortPredicate predicate)
select
in interface OrderedShortIterable
select
in interface ShortIterable
ShortStack reject(ShortPredicate predicate)
reject
in interface OrderedShortIterable
reject
in interface ShortIterable
<V> StackIterable<V> collect(ShortToObjectFunction<? extends V> function)
collect
in interface OrderedShortIterable
collect
in interface ShortIterable
boolean equals(Object o)
StackIterable.equals(Object)
.int hashCode()
StackIterable.hashCode()
.ImmutableShortStack toImmutable()
Copyright © 2004–2016. All rights reserved.