java.io.Externalizable
, java.io.Serializable
, LongIterable
, OrderedLongIterable
, PrimitiveIterable
, LongStack
, MutableLongStack
public 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, toString
allSatisfy, 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, toSortedArray
equals, hashCode, peek, peek, peekAt
tap
forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public 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)
MutableLongStack
push
in interface MutableLongStack
public long pop()
MutableLongStack
pop
in interface MutableLongStack
public LongList pop(int count)
MutableLongStack
pop
in interface MutableLongStack
public MutableLongStack select(LongPredicate predicate)
LongIterable
select
in interface LongIterable
select
in interface LongStack
select
in interface MutableLongStack
select
in interface OrderedLongIterable
public MutableLongStack reject(LongPredicate predicate)
LongIterable
reject
in interface LongIterable
reject
in interface LongStack
reject
in interface MutableLongStack
reject
in interface OrderedLongIterable
public <V> MutableStack<V> collect(LongToObjectFunction<? extends V> function)
LongIterable
collect
in interface LongIterable
collect
in interface LongStack
collect
in interface MutableLongStack
collect
in interface OrderedLongIterable
public void clear()
MutableLongStack
clear
in interface MutableLongStack
public MutableLongList toSortedList()
toSortedList
in interface LongIterable
public MutableLongStack asUnmodifiable()
asUnmodifiable
in interface MutableLongStack
public MutableLongStack asSynchronized()
asSynchronized
in interface MutableLongStack
public ImmutableLongStack toImmutable()
toImmutable
in interface LongStack
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
readExternal
in interface java.io.Externalizable
java.io.IOException
Copyright © 2004–2017. All rights reserved.