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.
|
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.
|
allSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, longIterator, max, maxIfEmpty, median, 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(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 OrderedLongIterable<V> MutableStack<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface LongIterablecollect in interface LongStackcollect in interface OrderedLongIterableMutableLongStack asUnmodifiable()
MutableLongStack asSynchronized()
Copyright © 2004–2017. All rights reserved.