Externalizable
, Serializable
, DoubleIterable
, OrderedDoubleIterable
, PrimitiveIterable
, DoubleStack
, MutableDoubleStack
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 | 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.
|
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() |
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, chunk, 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, toString
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray
equals, hashCode, peek, peek, peekAt
collectWithIndex, tap
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public 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)
MutableDoubleStack
push
in interface MutableDoubleStack
public double pop()
MutableDoubleStack
pop
in interface MutableDoubleStack
public DoubleList pop(int count)
MutableDoubleStack
pop
in interface MutableDoubleStack
public MutableDoubleStack select(DoublePredicate predicate)
DoubleIterable
select
in interface DoubleIterable
select
in interface DoubleStack
select
in interface MutableDoubleStack
select
in interface OrderedDoubleIterable
public MutableDoubleStack reject(DoublePredicate predicate)
DoubleIterable
reject
in interface DoubleIterable
reject
in interface DoubleStack
reject
in interface MutableDoubleStack
reject
in interface OrderedDoubleIterable
public <V> MutableStack<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterable
collect
in interface DoubleIterable
collect
in interface DoubleStack
collect
in interface MutableDoubleStack
collect
in interface OrderedDoubleIterable
public void clear()
MutableDoubleStack
clear
in interface MutableDoubleStack
public MutableDoubleList toSortedList()
toSortedList
in interface DoubleIterable
public MutableDoubleStack asUnmodifiable()
asUnmodifiable
in interface MutableDoubleStack
public MutableDoubleStack asSynchronized()
asSynchronized
in interface MutableDoubleStack
public ImmutableDoubleStack toImmutable()
toImmutable
in interface DoubleStack
public DoubleArrayStack newEmpty()
newEmpty
in interface MutableDoubleStack
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
IOException
Copyright © 2004–2019. All rights reserved.