ArrayStack, and is memory-optimized for double primitives.
This file was automatically generated from template file primitiveArrayStack.stg.
| Modifier and Type | Field and Description |
|---|---|
| private transient DoubleArrayList | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public MutableDoubleStack | |
| public MutableDoubleStack | |
| public void | clear()
Implements org. Clears the Stack |
| public <V> MutableStack | collect(DoubleToObjectFunction<? extends V> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection. |
| public boolean | equals(Object otherStack)
Overrides org. Implements org. Follows the same general contract as |
| protected DoubleArrayList | getDelegate()
Implements abstract org.
|
| public int | hashCode()
Overrides org. Implements org. Follows the same general contract as |
| public DoubleArrayStack | newEmpty()
Overrides default org. Creates a new empty DoubleArrayStack. |
| public static DoubleArrayStack | |
| public static DoubleArrayStack | |
| public static DoubleArrayStack | |
| public static DoubleArrayStack | |
| public double | pop()
Implements org. Removes and returns the top element of the stack. |
| public DoubleList | pop(int count)
Implements org. Removes and returns a DoubleList of the number of elements specified by the count, beginning with the top of the stack. |
| public void | push(double item)
Implements org. Adds an item to the top of the stack. |
| public void | readExternal(ObjectInput in)
Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public MutableDoubleStack | reject(DoublePredicate predicate)
Implements org. Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate. |
| public MutableDoubleStack | select(DoublePredicate predicate)
Implements org. Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate. |
| public ImmutableDoubleStack | |
| public MutableDoubleList | |
| public MutableDoubleStack | toStack()
Overrides default org. Converts the collection to a DoubleStack. |
| public void | writeExternal(ObjectOutput out)
Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| delegate | back to summary |
|---|---|
| private transient DoubleArrayList delegate | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| DoubleArrayStack | back to summary |
|---|---|
| public DoubleArrayStack() | |
| DoubleArrayStack | back to summary |
|---|---|
| private DoubleArrayStack(int size) | |
| DoubleArrayStack | back to summary |
|---|---|
| private DoubleArrayStack(double... items) | |
| asSynchronized | back to summary |
|---|---|
| public MutableDoubleStack asSynchronized() Implements org.
| |
| asUnmodifiable | back to summary |
|---|---|
| public MutableDoubleStack asUnmodifiable() Implements org.
| |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Doc from org. Clears the Stack
| |
| collect | back to summary |
|---|---|
| public <V> MutableStack Implements org. Doc from org. Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object otherStack) Overrides org. Implements org. Doc from org. Follows the same general contract as
| |
| getDelegate | back to summary |
|---|---|
| protected DoubleArrayList getDelegate() Implements abstract org.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Implements org. Doc from org. Follows the same general contract as
| |
| newEmpty | back to summary |
|---|---|
| public DoubleArrayStack newEmpty() Overrides default org. Creates a new empty DoubleArrayStack.
| |
| newStack | back to summary |
|---|---|
| public static DoubleArrayStack newStack(DoubleIterable items) | |
| newStackFromTopToBottom | back to summary |
|---|---|
| public static DoubleArrayStack newStackFromTopToBottom(double... items) | |
| newStackFromTopToBottom | back to summary |
|---|---|
| public static DoubleArrayStack newStackFromTopToBottom(DoubleIterable items) | |
| newStackWith | back to summary |
|---|---|
| public static DoubleArrayStack newStackWith(double... items) | |
| pop | back to summary |
|---|---|
| public double pop() Implements org. Doc from org. Removes and returns the top element of the stack.
| |
| pop | back to summary |
|---|---|
| public DoubleList pop(int count) Implements org. Doc from org. Removes and returns a DoubleList of the number of elements specified by the count, beginning with the top of the stack.
| |
| push | back to summary |
|---|---|
| public void push(double item) Implements org. Doc from org. Adds an item to the top of the stack.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException Implements java. Doc from java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| reject | back to summary |
|---|---|
| public MutableDoubleStack reject(DoublePredicate predicate) Implements org. Doc from org. Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.
| |
| select | back to summary |
|---|---|
| public MutableDoubleStack select(DoublePredicate predicate) Implements org. Doc from org. Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.
| |
| toImmutable | back to summary |
|---|---|
| public ImmutableDoubleStack toImmutable() Implements org.
| |
| toSortedList | back to summary |
|---|---|
| public MutableDoubleList toSortedList() Implements org.
| |
| toStack | back to summary |
|---|---|
| public MutableDoubleStack toStack() Overrides default org. Doc from org. Converts the collection to a DoubleStack.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |