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.
|
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.
|
ImmutableIntStack |
toImmutable() |
allSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, intIterator, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
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
<V> StackIterable<V> collect(IntToObjectFunction<? extends V> function)
IntIterable
collect
in interface IntIterable
collect
in interface OrderedIntIterable
boolean equals(Object o)
StackIterable.equals(Object)
.int hashCode()
StackIterable.hashCode()
.ImmutableIntStack toImmutable()
Copyright © 2004–2017. All rights reserved.