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

public Interface ImmutableLongStack

extends LongStack
Imports
org.eclipse.collections.api.block.function.primitive.LongIntToObjectFunction, .LongToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.LongIntPredicate, .LongPredicate, org.eclipse.collections.api.block.procedure.primitive.LongProcedure, 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(LongToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.stack.primitive.LongStack.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(LongIntToObjectFunction<? extends V> function)

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

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

public ImmutableLongStack
pop()

public ImmutableLongStack
pop(int count)

public ImmutableLongStack
push(long item)

public ImmutableLongStack
reject(LongPredicate predicate)

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

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

public default ImmutableLongStack
rejectWithIndex(LongIntPredicate predicate)

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

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

public ImmutableLongStack
select(LongPredicate predicate)

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

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

public default ImmutableLongStack
selectWithIndex(LongIntPredicate predicate)

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

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

public default ImmutableLongStack
Inherited from org.eclipse.collections.api.stack.primitive.LongStack:
equalshashCodepeekpeekpeekAttoImmutable

Method Detail

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

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

Doc from org.eclipse.collections.api.LongIterable.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(LongIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.stack.primitive.LongStack.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 ImmutableLongStack pop()
popback to summary
public ImmutableLongStack pop(int count)
pushback to summary
public ImmutableLongStack push(long item)
rejectback to summary
public ImmutableLongStack reject(LongPredicate predicate)

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

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

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

Annotations
@Override
rejectWithIndexback to summary
public default ImmutableLongStack rejectWithIndex(LongIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
selectback to summary
public ImmutableLongStack select(LongPredicate predicate)

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

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

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

Annotations
@Override
selectWithIndexback to summary
public default ImmutableLongStack selectWithIndex(LongIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
tapback to summary
public default ImmutableLongStack tap(LongProcedure procedure)

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

Annotations
@Override
Since
9.0.