IntIterable
, IntStack
, OrderedIntIterable
, PrimitiveIterable
public interface ImmutableIntStack extends IntStack
Modifier and Type | Method | Description |
---|---|---|
<V> ImmutableStack<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> ImmutableStack<V> |
collectWithIndex(IntIntToObjectFunction<? extends V> function) |
Returns a new ImmutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
ImmutableIntStack |
pop() |
|
ImmutableIntStack |
pop(int count) |
|
ImmutableIntStack |
push(int item) |
|
ImmutableIntStack |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
ImmutableIntStack |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
default ImmutableIntStack |
tap(IntProcedure procedure) |
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
equals, hashCode, peek, peek, peekAt, toImmutable
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
default ImmutableIntStack tap(IntProcedure procedure)
tap
in interface IntIterable
tap
in interface IntStack
ImmutableIntStack push(int item)
ImmutableIntStack pop()
ImmutableIntStack pop(int count)
ImmutableIntStack select(IntPredicate predicate)
IntIterable
select
in interface IntIterable
select
in interface IntStack
select
in interface OrderedIntIterable
ImmutableIntStack reject(IntPredicate predicate)
IntIterable
reject
in interface IntIterable
reject
in interface IntStack
reject
in interface OrderedIntIterable
<V> ImmutableStack<V> collect(IntToObjectFunction<? extends V> function)
IntIterable
collect
in interface IntIterable
collect
in interface IntStack
collect
in interface OrderedIntIterable
default <V> ImmutableStack<V> collectWithIndex(IntIntToObjectFunction<? extends V> function)
collectWithIndex
in interface IntStack
collectWithIndex
in interface OrderedIntIterable
Copyright © 2004–2019. All rights reserved.