public class LongArrayStack extends AbstractLongStack implements MutableLongStack, Externalizable
ArrayStack, and is memory-optimized for long primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor and Description |
|---|
LongArrayStack() |
| Modifier and Type | Method and Description |
|---|---|
MutableLongStack |
asSynchronized() |
MutableLongStack |
asUnmodifiable() |
void |
clear() |
<V> MutableStack<V> |
collect(LongToObjectFunction<? extends V> function) |
boolean |
equals(Object otherStack) |
int |
hashCode() |
LongArrayStack |
newEmpty()
Creates a new empty LongArrayStack.
|
static LongArrayStack |
newStack(LongIterable items) |
static LongArrayStack |
newStackFromTopToBottom(long... items) |
static LongArrayStack |
newStackFromTopToBottom(LongIterable items) |
static LongArrayStack |
newStackWith(long... items) |
long |
pop() |
LongList |
pop(int count) |
void |
push(long item) |
void |
readExternal(ObjectInput in) |
MutableLongStack |
reject(LongPredicate predicate) |
MutableLongStack |
select(LongPredicate predicate) |
ImmutableLongStack |
toImmutable() |
MutableLongList |
toSortedList() |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, contains, containsAll, containsAll, count, detectIfNone, each, forEachWithIndex, getFirst, indexOf, injectInto, injectIntoWithIndex, longIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, peek, peek, peekAt, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toStringcollectWithIndex, rejectWithIndex, selectWithIndex, tappeek, peek, peekAtcollectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex, rejectWithIndex, selectWithIndexallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, longIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedListBy, toSortedListByappendString, 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)
push in interface MutableLongStackpublic long pop()
pop in interface MutableLongStackpublic LongList pop(int count)
pop in interface MutableLongStackpublic MutableLongStack select(LongPredicate predicate)
select in interface LongIterableselect in interface OrderedLongIterableselect in interface LongStackselect in interface MutableLongStackpublic MutableLongStack reject(LongPredicate predicate)
reject in interface LongIterablereject in interface OrderedLongIterablereject in interface LongStackreject in interface MutableLongStackpublic <V> MutableStack<V> collect(LongToObjectFunction<? extends V> function)
collect in interface LongIterablecollect in interface OrderedLongIterablecollect in interface LongStackcollect in interface MutableLongStackpublic void clear()
clear 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 LongArrayStack newEmpty()
newEmpty in interface MutableLongStackpublic boolean equals(Object otherStack)
equals in interface LongStackequals in class AbstractLongStackpublic int hashCode()
hashCode in interface LongStackhashCode in class AbstractLongStackpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2022. All rights reserved.