Externalizable, Serializable, DoubleIterable, OrderedDoubleIterable, PrimitiveIterable, DoubleStack, MutableDoubleStack@NotThreadSafe public final class DoubleArrayStack extends AbstractDoubleStack implements MutableDoubleStack, Externalizable
ArrayStack, and is memory-optimized for double primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor | Description |
|---|---|
DoubleArrayStack() |
| Modifier and Type | Method | Description |
|---|---|---|
MutableDoubleStack |
asSynchronized() |
|
MutableDoubleStack |
asUnmodifiable() |
|
void |
clear() |
Clears the Stack
|
<V> MutableStack<V> |
collect(DoubleToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
static DoubleArrayStack |
newStack(DoubleIterable items) |
|
static DoubleArrayStack |
newStackFromTopToBottom(double... items) |
|
static DoubleArrayStack |
newStackFromTopToBottom(DoubleIterable items) |
|
static DoubleArrayStack |
newStackWith(double... items) |
|
double |
pop() |
Removes and returns the top element of the stack.
|
DoubleList |
pop(int count) |
Removes and returns a DoubleList of the number of elements specified by the count, beginning with the top of the stack.
|
void |
push(double item) |
Adds an item to the top of the stack.
|
void |
readExternal(ObjectInput in) |
|
MutableDoubleStack |
reject(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return false for the specified predicate.
|
MutableDoubleStack |
select(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return true for the specified predicate.
|
ImmutableDoubleStack |
toImmutable() |
|
MutableDoubleList |
toSortedList() |
|
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, equals, forEach, forEachWithIndex, getFirst, hashCode, indexOf, injectInto, injectIntoWithIndex, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, peek, peek, peekAt, size, sum, toArray, toBag, toList, toSet, toSortedArray, toStringallSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArrayequals, hashCode, peek, peek, peekAtforEachWithIndex, getFirst, indexOf, injectIntoWithIndexappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic static DoubleArrayStack newStackFromTopToBottom(double... items)
public static DoubleArrayStack newStackWith(double... items)
public static DoubleArrayStack newStack(DoubleIterable items)
public static DoubleArrayStack newStackFromTopToBottom(DoubleIterable items)
public void push(double item)
MutableDoubleStackpush in interface MutableDoubleStackpublic double pop()
MutableDoubleStackpop in interface MutableDoubleStackpublic DoubleList pop(int count)
MutableDoubleStackpop in interface MutableDoubleStackpublic MutableDoubleStack select(DoublePredicate predicate)
DoubleIterableselect in interface DoubleIterableselect in interface DoubleStackselect in interface MutableDoubleStackselect in interface OrderedDoubleIterablepublic MutableDoubleStack reject(DoublePredicate predicate)
DoubleIterablereject in interface DoubleIterablereject in interface DoubleStackreject in interface MutableDoubleStackreject in interface OrderedDoubleIterablepublic <V> MutableStack<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterablecollect in interface DoubleIterablecollect in interface DoubleStackcollect in interface MutableDoubleStackcollect in interface OrderedDoubleIterablepublic void clear()
MutableDoubleStackclear in interface MutableDoubleStackpublic MutableDoubleList toSortedList()
toSortedList in interface DoubleIterablepublic MutableDoubleStack asUnmodifiable()
asUnmodifiable in interface MutableDoubleStackpublic MutableDoubleStack asSynchronized()
asSynchronized in interface MutableDoubleStackpublic ImmutableDoubleStack toImmutable()
toImmutable in interface DoubleStackpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2017. All rights reserved.