LongIterable, LongStack, OrderedLongIterable, PrimitiveIterableLongArrayStack, SynchronizedLongStack, UnmodifiableLongStackpublic interface MutableLongStack extends LongStack
| Modifier and Type | Method | Description |
|---|---|---|
MutableLongStack |
asSynchronized() |
|
MutableLongStack |
asUnmodifiable() |
|
void |
clear() |
Clears the Stack
|
<V> MutableStack<V> |
collect(LongToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default <V> MutableStack<V> |
collectWithIndex(LongIntToObjectFunction<? extends V> function) |
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default MutableLongStack |
newEmpty() |
Creates a new empty mutable version of the same stack type.
|
long |
pop() |
Removes and returns the top element of the stack.
|
LongList |
pop(int count) |
Removes and returns a LongList of the number of elements specified by the count, beginning with the top of the stack.
|
void |
push(long item) |
Adds an item to the top of the stack.
|
MutableLongStack |
reject(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
MutableLongStack |
select(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
default MutableLongStack |
tap(LongProcedure 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, longIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListequals, hashCode, peek, peek, peekAt, toImmutablecollectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndexappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid push(long item)
long pop()
LongList pop(int count)
void clear()
MutableLongStack select(LongPredicate predicate)
LongIterableselect in interface LongIterableselect in interface LongStackselect in interface OrderedLongIterableMutableLongStack reject(LongPredicate predicate)
LongIterablereject in interface LongIterablereject in interface LongStackreject in interface OrderedLongIterabledefault MutableLongStack tap(LongProcedure procedure)
tap in interface LongIterabletap in interface LongStack<V> MutableStack<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface LongIterablecollect in interface LongStackcollect in interface OrderedLongIterabledefault <V> MutableStack<V> collectWithIndex(LongIntToObjectFunction<? extends V> function)
collectWithIndex in interface LongStackcollectWithIndex in interface OrderedLongIterableMutableLongStack asUnmodifiable()
MutableLongStack asSynchronized()
default MutableLongStack newEmpty()
Copyright © 2004–2020. All rights reserved.