IntIterable
, IntStack
, OrderedIntIterable
, PrimitiveIterable
IntArrayStack
, SynchronizedIntStack
, UnmodifiableIntStack
public interface MutableIntStack extends IntStack
Modifier and Type | Method | Description |
---|---|---|
MutableIntStack |
asSynchronized() |
|
MutableIntStack |
asUnmodifiable() |
|
void |
clear() |
Clears the Stack
|
<V> MutableStack<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.
|
int |
pop() |
Removes and returns the top element of the stack.
|
IntList |
pop(int count) |
Removes and returns a IntList of the number of elements specified by the count, beginning with the top of the stack.
|
void |
push(int item) |
Adds an item to the top of the stack.
|
MutableIntStack |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
MutableIntStack |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
default MutableIntStack |
tap(IntProcedure procedure) |
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, toSortedList
equals, hashCode, peek, peek, peekAt, toImmutable
forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
void push(int item)
int pop()
IntList pop(int count)
void clear()
MutableIntStack select(IntPredicate predicate)
IntIterable
select
in interface IntIterable
select
in interface IntStack
select
in interface OrderedIntIterable
MutableIntStack reject(IntPredicate predicate)
IntIterable
reject
in interface IntIterable
reject
in interface IntStack
reject
in interface OrderedIntIterable
default MutableIntStack tap(IntProcedure procedure)
tap
in interface IntIterable
tap
in interface IntStack
<V> MutableStack<V> collect(IntToObjectFunction<? extends V> function)
IntIterable
collect
in interface IntIterable
collect
in interface IntStack
collect
in interface OrderedIntIterable
MutableIntStack asUnmodifiable()
MutableIntStack asSynchronized()
Copyright © 2004–2017. All rights reserved.