LongIterable
, LongStack
, OrderedLongIterable
, PrimitiveIterable
LongArrayStack
, SynchronizedLongStack
, UnmodifiableLongStack
public 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, toSortedList
equals, hashCode, peek, peek, peekAt, toImmutable
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
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)
LongIterable
select
in interface LongIterable
select
in interface LongStack
select
in interface OrderedLongIterable
MutableLongStack reject(LongPredicate predicate)
LongIterable
reject
in interface LongIterable
reject
in interface LongStack
reject
in interface OrderedLongIterable
default MutableLongStack tap(LongProcedure procedure)
tap
in interface LongIterable
tap
in interface LongStack
<V> MutableStack<V> collect(LongToObjectFunction<? extends V> function)
LongIterable
collect
in interface LongIterable
collect
in interface LongStack
collect
in interface OrderedLongIterable
default <V> MutableStack<V> collectWithIndex(LongIntToObjectFunction<? extends V> function)
collectWithIndex
in interface LongStack
collectWithIndex
in interface OrderedLongIterable
MutableLongStack asUnmodifiable()
MutableLongStack asSynchronized()
default MutableLongStack newEmpty()
Copyright © 2004–2020. All rights reserved.