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, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringint peek()
IntList peek(int count)
int peekAt(int index)
index - the location to peek intoIntStack select(IntPredicate predicate)
select in interface IntIterableIntStack reject(IntPredicate predicate)
reject in interface IntIterable<V> StackIterable<V> collect(IntToObjectFunction<? extends V> function)
collect in interface IntIterableboolean equals(Object o)
StackIterable.equals(Object).int hashCode()
StackIterable.hashCode().ImmutableIntStack toImmutable()
Copyright © 2004–2016. All rights reserved.