Top Description Methods
org.eclipse.collections.api.stack.primitive

public Interface ImmutableDoubleStack

extends DoubleStack
Imports
org.eclipse.collections.api.block.function.primitive.DoubleIntToObjectFunction, .DoubleToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.DoubleIntPredicate, .DoublePredicate, org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure, org.eclipse.collections.api.stack.ImmutableStack

This file was automatically generated from template file immutablePrimitiveStack.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public <V> ImmutableStack<V>
collect(DoubleToObjectFunction<? extends V> function)

Redeclares 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.

public default <V> ImmutableStack<V>
collectWithIndex(DoubleIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.stack.primitive.DoubleStack.collectWithIndex.

Returns a new ImmutableStack using results obtained by applying the specified function to each element and its corresponding index.

public ImmutableDoubleStack
pop()

public ImmutableDoubleStack
pop(int count)

public ImmutableDoubleStack
push(double item)

public ImmutableDoubleStack
reject(DoublePredicate predicate)

Redeclares 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 default ImmutableDoubleStack
rejectWithIndex(DoubleIntPredicate predicate)

Overrides default org.eclipse.collections.api.stack.primitive.DoubleStack.rejectWithIndex.

Returns a new ImmutableDoubleStack excluding all elements with corresponding indexes matching the specified predicate.

public ImmutableDoubleStack
select(DoublePredicate predicate)

Redeclares 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 default ImmutableDoubleStack
selectWithIndex(DoubleIntPredicate predicate)

Overrides default org.eclipse.collections.api.stack.primitive.DoubleStack.selectWithIndex.

Returns a new ImmutableDoubleStack including all elements with corresponding indexes matching the specified predicate.

public default ImmutableDoubleStack
Inherited from org.eclipse.collections.api.stack.primitive.DoubleStack:
equalshashCodepeekpeekpeekAttoImmutable

Method Detail

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

Redeclares 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
collectWithIndexback to summary
public default <V> ImmutableStack<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.stack.primitive.DoubleStack.collectWithIndex.

Returns a new ImmutableStack using results obtained by applying the specified function to each element and its corresponding index.

Annotations
@Override
Since
9.1.
popback to summary
public ImmutableDoubleStack pop()
popback to summary
public ImmutableDoubleStack pop(int count)
pushback to summary
public ImmutableDoubleStack push(double item)
rejectback to summary
public ImmutableDoubleStack reject(DoublePredicate predicate)

Redeclares 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
rejectWithIndexback to summary
public default ImmutableDoubleStack rejectWithIndex(DoubleIntPredicate predicate)

Overrides default org.eclipse.collections.api.stack.primitive.DoubleStack.rejectWithIndex.

Returns a new ImmutableDoubleStack excluding all elements with corresponding indexes matching the specified predicate.

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

Redeclares 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
selectWithIndexback to summary
public default ImmutableDoubleStack selectWithIndex(DoubleIntPredicate predicate)

Overrides default org.eclipse.collections.api.stack.primitive.DoubleStack.selectWithIndex.

Returns a new ImmutableDoubleStack including all elements with corresponding indexes matching the specified predicate.

Annotations
@Override
Since
11.1.
tapback to summary
public default ImmutableDoubleStack tap(DoubleProcedure procedure)

Overrides default org.eclipse.collections.api.stack.primitive.DoubleStack.tap.

Annotations
@Override
Since
9.0.