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