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

public Interface ImmutableIntStack

extends IntStack
Imports
org.eclipse.collections.api.block.function.primitive.IntIntToObjectFunction, .IntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntIntPredicate, .IntPredicate, org.eclipse.collections.api.block.procedure.primitive.IntProcedure, 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(IntToObjectFunction<? extends V> function)

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

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

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

public ImmutableIntStack
pop()

public ImmutableIntStack
pop(int count)

public ImmutableIntStack
push(int item)

public ImmutableIntStack
reject(IntPredicate predicate)

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

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

public default ImmutableIntStack
rejectWithIndex(IntIntPredicate predicate)

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

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

public ImmutableIntStack
select(IntPredicate predicate)

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

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

public default ImmutableIntStack
selectWithIndex(IntIntPredicate predicate)

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

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

public default ImmutableIntStack
Inherited from org.eclipse.collections.api.stack.primitive.IntStack:
equalshashCodepeekpeekpeekAttoImmutable

Method Detail

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

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

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

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

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

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

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

Annotations
@Override
rejectWithIndexback to summary
public default ImmutableIntStack rejectWithIndex(IntIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
selectback to summary
public ImmutableIntStack select(IntPredicate predicate)

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

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

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

Annotations
@Override
selectWithIndexback to summary
public default ImmutableIntStack selectWithIndex(IntIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
tapback to summary
public default ImmutableIntStack tap(IntProcedure procedure)

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

Annotations
@Override
Since
9.0.