IntIterable, IntStack, OrderedIntIterable, PrimitiveIterableIntArrayStack, SynchronizedIntStack, UnmodifiableIntStackpublic 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, toSortedListequals, hashCode, peek, peek, peekAt, toImmutableforEachWithIndex, getFirst, indexOf, injectIntoWithIndexappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid push(int item)
int pop()
IntList pop(int count)
void clear()
MutableIntStack select(IntPredicate predicate)
IntIterableselect in interface IntIterableselect in interface IntStackselect in interface OrderedIntIterableMutableIntStack reject(IntPredicate predicate)
IntIterablereject in interface IntIterablereject in interface IntStackreject in interface OrderedIntIterabledefault MutableIntStack tap(IntProcedure procedure)
tap in interface IntIterabletap in interface IntStack<V> MutableStack<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface IntIterablecollect in interface IntStackcollect in interface OrderedIntIterableMutableIntStack asUnmodifiable()
MutableIntStack asSynchronized()
Copyright © 2004–2017. All rights reserved.