public interface LongStack extends OrderedLongIterable
Modifier and Type | Method and Description |
---|---|
<V> StackIterable<V> |
collect(LongToObjectFunction<? 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() . |
long |
peek()
Returns the top of the stack.
|
LongList |
peek(int count)
Returns LongList of the number of elements specified by the count, beginning with the top of the stack.
|
long |
peekAt(int index)
Returns the element at the specified index.
|
LongStack |
reject(LongPredicate predicate) |
LongStack |
select(LongPredicate predicate) |
ImmutableLongStack |
toImmutable() |
forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, longIterator, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
long peek()
LongList peek(int count)
long peekAt(int index)
index
- the location to peek intoLongStack select(LongPredicate predicate)
select
in interface LongIterable
select
in interface OrderedLongIterable
LongStack reject(LongPredicate predicate)
reject
in interface LongIterable
reject
in interface OrderedLongIterable
<V> StackIterable<V> collect(LongToObjectFunction<? extends V> function)
collect
in interface LongIterable
collect
in interface OrderedLongIterable
boolean equals(Object o)
StackIterable.equals(Object)
.int hashCode()
StackIterable.hashCode()
.ImmutableLongStack toImmutable()
Copyright © 2004–2016. All rights reserved.