Top Description Inners Fields Constructors Methods
org.eclipse.collections.impl.stack.immutable.primitive

pack-priv final Class ImmutableDoubleArrayStack

extends AbstractDoubleStack
implements ImmutableDoubleStack, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.eclipse.collections.api.stack.primitive.ImmutableDoubleStack, org.eclipse.collections.api.stack.primitive.DoubleStack, org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable, org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.PrimitiveIterable
Imports
java.io.Externalizable, .IOException, .ObjectInput, .ObjectOutput, .Serializable, org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.DoublePredicate, org.eclipse.collections.api.list.primitive.MutableDoubleList, org.eclipse.collections.api.stack.ImmutableStack, org.eclipse.collections.api.stack.primitive.DoubleStack, .ImmutableDoubleStack, .MutableDoubleStack, org.eclipse.collections.impl.block.procedure.checked.primitive.CheckedDoubleProcedure, org.eclipse.collections.impl.factory.Stacks, org.eclipse.collections.impl.factory.primitive.DoubleStacks, org.eclipse.collections.impl.list.mutable.primitive.DoubleArrayList, org.eclipse.collections.impl.stack.mutable.primitive.DoubleArrayStack, org.eclipse.collections.impl.stack.primitive.AbstractDoubleStack

ImmutableDoubleArrayStack is the non-modifiable equivalent of DoubleArrayStack. This file was automatically generated from template file immutablePrimitiveArrayStack.stg.
Since
4.0.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final DoubleArrayList
private static final long

Constructor Summary

AccessConstructor and Description
private
ImmutableDoubleArrayStack(double[] newElements)

private

Method Summary

Modifier and TypeMethod and Description
private void
checkNegativeCount(int count)

private void
checkOptimizedSize(int length)

public <V> ImmutableStack<V>
collect(DoubleToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.stack.primitive.ImmutableDoubleStack.collect, org.eclipse.collections.api.stack.primitive.DoubleStack.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

protected DoubleArrayList
public boolean
isEmpty()

Overrides default org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Returns true if this iterable has zero items.

public static ImmutableDoubleArrayStack
public static ImmutableDoubleArrayStack
newStackFromTopToBottom(double... items)

public static ImmutableDoubleArrayStack
public static ImmutableDoubleArrayStack
newStackWith(double... elements)

public boolean
notEmpty()

Overrides default org.eclipse.collections.api.PrimitiveIterable.notEmpty.

The English equivalent of !this.isEmpty()

public ImmutableDoubleStack
public ImmutableDoubleStack
public ImmutableDoubleStack
public ImmutableDoubleStack
reject(DoublePredicate predicate)

Implements org.eclipse.collections.api.stack.primitive.ImmutableDoubleStack.reject, org.eclipse.collections.api.stack.primitive.DoubleStack.reject.

Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.

public ImmutableDoubleStack
select(DoublePredicate predicate)

Implements org.eclipse.collections.api.stack.primitive.ImmutableDoubleStack.select, org.eclipse.collections.api.stack.primitive.DoubleStack.select.

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.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable.toStack.

Converts the collection to a DoubleStack.

private Object
Inherited from org.eclipse.collections.impl.stack.primitive.AbstractDoubleStack:
allSatisfyanySatisfyappendStringappendStringappendStringasLazyaveragecheckEmptyStackcheckPositiveValueForCountcheckSizeLessThanCountchunkcontainscontainsAllcontainsAllcountdetectIfNonedoubleIteratoreachequalsforEachWithIndexgetFirsthashCodeindexOfinjectIntoinjectIntoWithIndexmakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfypeekpeekpeekAtrangeChecksizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoString

Field Detail

delegateback to summary
private final DoubleArrayList delegate
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

ImmutableDoubleArrayStackback to summary
private ImmutableDoubleArrayStack(double[] newElements)
ImmutableDoubleArrayStackback to summary
private ImmutableDoubleArrayStack(DoubleArrayList newElements)

Method Detail

checkNegativeCountback to summary
private void checkNegativeCount(int count)
checkOptimizedSizeback to summary
private void checkOptimizedSize(int length)
collectback to summary
public <V> ImmutableStack<V> collect(DoubleToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.stack.primitive.ImmutableDoubleStack.collect, org.eclipse.collections.api.stack.primitive.DoubleStack.collect.

Doc from org.eclipse.collections.api.DoubleIterable.collect.

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.

Annotations
@Override
getDelegateback to summary
protected DoubleArrayList getDelegate()

Implements abstract org.eclipse.collections.impl.stack.primitive.AbstractDoubleStack.getDelegate.

Annotations
@Override
isEmptyback to summary
public boolean isEmpty()

Overrides default org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Doc from org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Returns true if this iterable has zero items.

Annotations
@Override
newStackback to summary
public static ImmutableDoubleArrayStack newStack(DoubleIterable iterable)
newStackFromTopToBottomback to summary
public static ImmutableDoubleArrayStack newStackFromTopToBottom(double... items)
newStackFromTopToBottomback to summary
public static ImmutableDoubleArrayStack newStackFromTopToBottom(DoubleIterable items)
newStackWithback to summary
public static ImmutableDoubleArrayStack newStackWith(double... elements)
notEmptyback to summary
public boolean notEmpty()

Overrides default org.eclipse.collections.api.PrimitiveIterable.notEmpty.

Doc from org.eclipse.collections.api.PrimitiveIterable.notEmpty.

The English equivalent of !this.isEmpty()

Annotations
@Override
popback to summary
public ImmutableDoubleStack pop()

Implements org.eclipse.collections.api.stack.primitive.ImmutableDoubleStack.pop.

Annotations
@Override
popback to summary
public ImmutableDoubleStack pop(int count)

Implements org.eclipse.collections.api.stack.primitive.ImmutableDoubleStack.pop.

Annotations
@Override
pushback to summary
public ImmutableDoubleStack push(double item)

Implements org.eclipse.collections.api.stack.primitive.ImmutableDoubleStack.push.

Annotations
@Override
rejectback to summary
public ImmutableDoubleStack reject(DoublePredicate predicate)

Implements org.eclipse.collections.api.stack.primitive.ImmutableDoubleStack.reject, org.eclipse.collections.api.stack.primitive.DoubleStack.reject.

Doc from org.eclipse.collections.api.DoubleIterable.reject.

Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.

Annotations
@Override
selectback to summary
public ImmutableDoubleStack select(DoublePredicate predicate)

Implements org.eclipse.collections.api.stack.primitive.ImmutableDoubleStack.select, org.eclipse.collections.api.stack.primitive.DoubleStack.select.

Doc from org.eclipse.collections.api.DoubleIterable.select.

Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.

Annotations
@Override
toImmutableback to summary
public ImmutableDoubleStack toImmutable()

Implements org.eclipse.collections.api.stack.primitive.DoubleStack.toImmutable.

Annotations
@Override
toSortedListback to summary
public MutableDoubleList toSortedList()

Implements org.eclipse.collections.api.DoubleIterable.toSortedList.

Annotations
@Override
toStackback to summary
public MutableDoubleStack toStack()

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable.toStack.

Doc from org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable.toStack.

Converts the collection to a DoubleStack.

Annotations
@Override
writeReplaceback to summary
private Object writeReplace()
org.eclipse.collections.impl.stack.immutable.primitive back to summary

private Class ImmutableDoubleArrayStack.ImmutableDoubleStackSerializationProxy

extends Object
implements Externalizable
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.stack.immutable.primitive.ImmutableDoubleArrayStack.ImmutableDoubleStackSerializationProxy
All Implemented Interfaces
java.io.Externalizable, java.io.Serializable

Field Summary

Modifier and TypeField and Description
private static final long
private DoubleStack

Constructor Summary

AccessConstructor and Description
public
protected

Method Summary

Modifier and TypeMethod and Description
public void
readExternal(ObjectInput in)

Implements java.io.Externalizable.readExternal.

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.

protected Object
public void
writeExternal(final ObjectOutput out)

Implements java.io.Externalizable.writeExternal.

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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID
stackback to summary
private DoubleStack stack

Constructor Detail

ImmutableDoubleStackSerializationProxyback to summary
public ImmutableDoubleStackSerializationProxy()
ImmutableDoubleStackSerializationProxyback to summary
protected ImmutableDoubleStackSerializationProxy(DoubleStack stack)

Method Detail

readExternalback to summary
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException

Implements java.io.Externalizable.readExternal.

Doc from java.io.Externalizable.readExternal.

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.

Annotations
@Override
Exceptions
IOException:
if I/O errors occur
ClassNotFoundException:
If the class for an object being restored cannot be found.
readResolveback to summary
protected Object readResolve()
writeExternalback to summary
public void writeExternal(final ObjectOutput out) throws IOException

Implements java.io.Externalizable.writeExternal.

Doc from java.io.Externalizable.writeExternal.

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.

Annotations
@Override
Exceptions
IOException:
Includes any I/O exceptions that may occur