IntIterable
, OrderedIntIterable
, PrimitiveIterable
ImmutableIntStack
, MutableIntStack
AbstractIntStack
, IntArrayStack
, SynchronizedIntStack
, UnmodifiableIntStack
public 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.
|
default <V> StackIterable<V> |
collectWithIndex(IntIntToObjectFunction<? extends V> function) |
Returns a new StackIterable using results obtained by applying the specified function to each element
and its corresponding index.
|
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) |
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, chunk, 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, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
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)
IntIterable
select
in interface IntIterable
select
in interface OrderedIntIterable
IntStack reject(IntPredicate predicate)
IntIterable
reject
in interface IntIterable
reject
in interface OrderedIntIterable
default IntStack tap(IntProcedure procedure)
tap
in interface IntIterable
<V> StackIterable<V> collect(IntToObjectFunction<? extends V> function)
IntIterable
collect
in interface IntIterable
collect
in interface OrderedIntIterable
default <V> StackIterable<V> collectWithIndex(IntIntToObjectFunction<? extends V> function)
collectWithIndex
in interface OrderedIntIterable
boolean equals(Object o)
StackIterable.equals(Object)
.int hashCode()
StackIterable.hashCode()
.ImmutableIntStack toImmutable()
Copyright © 2004–2019. All rights reserved.