java.io.Externalizable, java.io.Serializable, LongIterable, OrderedLongIterable, PrimitiveIterable, LongStack, MutableLongStackpublic final class LongArrayStack extends AbstractLongStack implements MutableLongStack, java.io.Externalizable
ArrayStack, and is memory-optimized for long primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor | Description |
|---|---|
LongArrayStack() |
| 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.
|
static LongArrayStack |
newStack(LongIterable items) |
|
static LongArrayStack |
newStackFromTopToBottom(long... items) |
|
static LongArrayStack |
newStackFromTopToBottom(LongIterable items) |
|
static LongArrayStack |
newStackWith(long... items) |
|
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.
|
void |
readExternal(java.io.ObjectInput in) |
|
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.
|
ImmutableLongStack |
toImmutable() |
|
MutableLongList |
toSortedList() |
|
void |
writeExternal(java.io.ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, equals, forEach, forEachWithIndex, getFirst, hashCode, indexOf, injectInto, injectIntoWithIndex, longIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, peek, peek, peekAt, size, sum, toArray, toBag, toList, toSet, toSortedArray, toStringallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArrayequals, hashCode, peek, peek, peekAttapforEachWithIndex, getFirst, indexOf, injectIntoWithIndexappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic static LongArrayStack newStackFromTopToBottom(long... items)
public static LongArrayStack newStackWith(long... items)
public static LongArrayStack newStack(LongIterable items)
public static LongArrayStack newStackFromTopToBottom(LongIterable items)
public void push(long item)
MutableLongStackpush in interface MutableLongStackpublic long pop()
MutableLongStackpop in interface MutableLongStackpublic LongList pop(int count)
MutableLongStackpop in interface MutableLongStackpublic MutableLongStack select(LongPredicate predicate)
LongIterableselect in interface LongIterableselect in interface LongStackselect in interface MutableLongStackselect in interface OrderedLongIterablepublic MutableLongStack reject(LongPredicate predicate)
LongIterablereject in interface LongIterablereject in interface LongStackreject in interface MutableLongStackreject in interface OrderedLongIterablepublic <V> MutableStack<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface LongIterablecollect in interface LongStackcollect in interface MutableLongStackcollect in interface OrderedLongIterablepublic void clear()
MutableLongStackclear in interface MutableLongStackpublic MutableLongList toSortedList()
toSortedList in interface LongIterablepublic MutableLongStack asUnmodifiable()
asUnmodifiable in interface MutableLongStackpublic MutableLongStack asSynchronized()
asSynchronized in interface MutableLongStackpublic ImmutableLongStack toImmutable()
toImmutable in interface LongStackpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOExceptionCopyright © 2004–2017. All rights reserved.