public interface MutableLongStack extends LongStack
Modifier and Type | Method and Description |
---|---|
MutableLongStack |
asSynchronized() |
MutableLongStack |
asUnmodifiable() |
void |
clear()
Clears the Stack
|
<V> MutableStack<V> |
collect(LongToObjectFunction<? extends V> function) |
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) |
MutableLongStack |
select(LongPredicate predicate) |
equals, hashCode, peek, peek, peekAt, toImmutable
forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, longIterator, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
void push(long item)
long pop()
LongList pop(int count)
void clear()
MutableLongStack select(LongPredicate predicate)
select
in interface LongIterable
select
in interface LongStack
select
in interface OrderedLongIterable
MutableLongStack reject(LongPredicate predicate)
reject
in interface LongIterable
reject
in interface LongStack
reject
in interface OrderedLongIterable
<V> MutableStack<V> collect(LongToObjectFunction<? extends V> function)
collect
in interface LongIterable
collect
in interface LongStack
collect
in interface OrderedLongIterable
MutableLongStack asUnmodifiable()
MutableLongStack asSynchronized()
Copyright © 2004–2016. All rights reserved.