IntIterable, OrderedIntIterable, PrimitiveIterableImmutableIntStack, MutableIntStackAbstractIntStack, IntArrayStack, SynchronizedIntStack, UnmodifiableIntStackpublic interface IntStack extends OrderedIntIterable
| Modifier and Type | Method | Description |
|---|---|---|
<V> StackIterable<V> |
collect(IntToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
boolean |
equals(java.lang.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) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
IntStack |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
default IntStack |
tap(IntProcedure procedure) |
|
ImmutableIntStack |
toImmutable() |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, intIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListforEachWithIndex, getFirst, indexOf, injectIntoWithIndexappendString, 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)
IntIterableselect in interface IntIterableselect in interface OrderedIntIterableIntStack reject(IntPredicate predicate)
IntIterablereject in interface IntIterablereject in interface OrderedIntIterabledefault IntStack tap(IntProcedure procedure)
tap in interface IntIterable<V> StackIterable<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface IntIterablecollect in interface OrderedIntIterableboolean equals(java.lang.Object o)
StackIterable.equals(Object).equals in class java.lang.Objectint hashCode()
StackIterable.hashCode().hashCode in class java.lang.ObjectImmutableIntStack toImmutable()
Copyright © 2004–2017. All rights reserved.