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

public Interface FloatStack

extends OrderedFloatIterable
Known Direct Subinterfaces
org.eclipse.collections.api.stack.primitive.ImmutableFloatStack, org.eclipse.collections.api.stack.primitive.MutableFloatStack
Imports
org.eclipse.collections.api.block.function.primitive.FloatIntToObjectFunction, .FloatToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.FloatIntPredicate, .FloatPredicate, org.eclipse.collections.api.block.procedure.primitive.FloatProcedure, org.eclipse.collections.api.list.primitive.FloatList, org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable, org.eclipse.collections.api.stack.StackIterable

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

Method Summary

Modifier and TypeMethod and Description
public <V> StackIterable<V>
collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.collect.

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

public default <V> StackIterable<V>
collectWithIndex(FloatIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.collectWithIndex.

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

public boolean
equals(Object o)

Follows the same general contract as StackIterable#equals(Object).

public int
hashCode()

Follows the same general contract as StackIterable#hashCode().

public float
peek()

Returns the top of the stack.

public FloatList
peek(int count)

Returns FloatList of the number of elements specified by the count, beginning with the top of the stack.

public float
peekAt(int
the location to peek into
index
)

Returns the element at the specified index.

public FloatStack
reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.reject.

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

public default FloatStack
rejectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.rejectWithIndex.

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

public FloatStack
select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.select.

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

public default FloatStack
selectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.selectWithIndex.

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

public default FloatStack
public ImmutableFloatStack
Inherited from org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable:
collectWithIndexforEachWithIndexgetFirstindexOfinjectIntoWithIndexrejectWithIndexselectWithIndextoStack

Method Detail

collectback to summary
public <V> StackIterable<V> collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.collect.

Doc from org.eclipse.collections.api.FloatIterable.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> StackIterable<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.collectWithIndex.

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

Annotations
@Override
Since
9.1.
equalsback to summary
public boolean equals(Object o)

Follows the same general contract as StackIterable#equals(Object).

Annotations
@Override
hashCodeback to summary
public int hashCode()

Follows the same general contract as StackIterable#hashCode().

Annotations
@Override
peekback to summary
public float peek()

Returns the top of the stack.

peekback to summary
public FloatList peek(int count)

Returns FloatList of the number of elements specified by the count, beginning with the top of the stack.

peekAtback to summary
public float peekAt(int index)

Returns the element at the specified index.

Parameters
index:int

the location to peek into

rejectback to summary
public FloatStack reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.reject.

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

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

Annotations
@Override
rejectWithIndexback to summary
public default FloatStack rejectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.rejectWithIndex.

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

Annotations
@Override
Since
11.1.
selectback to summary
public FloatStack select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.select.

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

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

Annotations
@Override
selectWithIndexback to summary
public default FloatStack selectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.selectWithIndex.

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

Annotations
@Override
Since
11.1.
tapback to summary
public default FloatStack tap(FloatProcedure procedure)

Overrides default org.eclipse.collections.api.FloatIterable.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableFloatStack toImmutable()