public 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 and Description |
|---|
DoubleArrayStack() |
| Modifier and Type | Method and Description |
|---|---|
MutableDoubleStack |
asSynchronized() |
MutableDoubleStack |
asUnmodifiable() |
void |
clear() |
<V> MutableStack<V> |
collect(DoubleToObjectFunction<? extends V> function) |
boolean |
equals(Object otherStack) |
int |
hashCode() |
DoubleArrayStack |
newEmpty()
Creates a new empty DoubleArrayStack.
|
static DoubleArrayStack |
newStack(DoubleIterable items) |
static DoubleArrayStack |
newStackFromTopToBottom(double... items) |
static DoubleArrayStack |
newStackFromTopToBottom(DoubleIterable items) |
static DoubleArrayStack |
newStackWith(double... items) |
double |
pop() |
DoubleList |
pop(int count) |
void |
push(double item) |
void |
readExternal(ObjectInput in) |
MutableDoubleStack |
reject(DoublePredicate predicate) |
MutableDoubleStack |
select(DoublePredicate predicate) |
ImmutableDoubleStack |
toImmutable() |
MutableDoubleList |
toSortedList() |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, forEachWithIndex, getFirst, indexOf, injectInto, injectIntoWithIndex, 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, doubleIterator, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, 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 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)
push in interface MutableDoubleStackpublic double pop()
pop in interface MutableDoubleStackpublic DoubleList pop(int count)
pop in interface MutableDoubleStackpublic MutableDoubleStack select(DoublePredicate predicate)
select in interface DoubleIterableselect in interface OrderedDoubleIterableselect in interface DoubleStackselect in interface MutableDoubleStackpublic MutableDoubleStack reject(DoublePredicate predicate)
reject in interface DoubleIterablereject in interface OrderedDoubleIterablereject in interface DoubleStackreject in interface MutableDoubleStackpublic <V> MutableStack<V> collect(DoubleToObjectFunction<? extends V> function)
collect in interface DoubleIterablecollect in interface OrderedDoubleIterablecollect in interface DoubleStackcollect in interface MutableDoubleStackpublic void clear()
clear 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 DoubleArrayStack newEmpty()
newEmpty in interface MutableDoubleStackpublic boolean equals(Object otherStack)
equals in interface DoubleStackequals in class AbstractDoubleStackpublic int hashCode()
hashCode in interface DoubleStackhashCode in class AbstractDoubleStackpublic 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.