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

public Interface MutableFloatStack

extends FloatStack
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.stack.MutableStack

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

Method Summary

Modifier and TypeMethod and Description
public MutableFloatStack
public MutableFloatStack
public void
clear()

Clears the Stack

public <V> MutableStack<V>
collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.stack.primitive.FloatStack.collect.

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

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

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

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

public default MutableFloatStack
newEmpty()

Creates a new empty mutable version of the same stack type.

public float
pop()

Removes and returns the top element of the stack.

public FloatList
pop(int count)

Removes and returns a FloatList of the number of elements specified by the count, beginning with the top of the stack.

public void
push(float item)

Adds an item to the top of the stack.

public MutableFloatStack
reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.stack.primitive.FloatStack.reject.

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

public default MutableFloatStack
rejectWithIndex(FloatIntPredicate predicate)

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

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

public MutableFloatStack
select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.stack.primitive.FloatStack.select.

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

public default MutableFloatStack
selectWithIndex(FloatIntPredicate predicate)

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

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

public default MutableFloatStack
Inherited from org.eclipse.collections.api.stack.primitive.FloatStack:
equalshashCodepeekpeekpeekAttoImmutable

Method Detail

asSynchronizedback to summary
public MutableFloatStack asSynchronized()
asUnmodifiableback to summary
public MutableFloatStack asUnmodifiable()
clearback to summary
public void clear()

Clears the Stack

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

Redeclares org.eclipse.collections.api.stack.primitive.FloatStack.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> MutableStack<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)

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

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

Annotations
@Override
Since
9.1.
newEmptyback to summary
public default MutableFloatStack newEmpty()

Creates a new empty mutable version of the same stack type.

Since
9.2.
popback to summary
public float pop()

Removes and returns the top element of the stack.

popback to summary
public FloatList pop(int count)

Removes and returns a FloatList of the number of elements specified by the count, beginning with the top of the stack.

pushback to summary
public void push(float item)

Adds an item to the top of the stack.

rejectback to summary
public MutableFloatStack reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.stack.primitive.FloatStack.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 MutableFloatStack rejectWithIndex(FloatIntPredicate predicate)

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

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

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

Redeclares org.eclipse.collections.api.stack.primitive.FloatStack.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 MutableFloatStack selectWithIndex(FloatIntPredicate predicate)

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

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

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

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

Annotations
@Override
Since
9.0.