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

public Interface ImmutableShortStack

extends ShortStack
Imports
org.eclipse.collections.api.block.function.primitive.ShortIntToObjectFunction, .ShortToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ShortIntPredicate, .ShortPredicate, org.eclipse.collections.api.block.procedure.primitive.ShortProcedure, 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(ShortToObjectFunction<? extends V> function)

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

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

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

public ImmutableShortStack
pop()

public ImmutableShortStack
pop(int count)

public ImmutableShortStack
push(short item)

public ImmutableShortStack
reject(ShortPredicate predicate)

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

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

public default ImmutableShortStack
rejectWithIndex(ShortIntPredicate predicate)

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

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

public ImmutableShortStack
select(ShortPredicate predicate)

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

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

public default ImmutableShortStack
selectWithIndex(ShortIntPredicate predicate)

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

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

public default ImmutableShortStack
Inherited from org.eclipse.collections.api.stack.primitive.ShortStack:
equalshashCodepeekpeekpeekAttoImmutable

Method Detail

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

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

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

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

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

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

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

Annotations
@Override
rejectWithIndexback to summary
public default ImmutableShortStack rejectWithIndex(ShortIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
selectback to summary
public ImmutableShortStack select(ShortPredicate predicate)

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

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

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

Annotations
@Override
selectWithIndexback to summary
public default ImmutableShortStack selectWithIndex(ShortIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
tapback to summary
public default ImmutableShortStack tap(ShortProcedure procedure)

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

Annotations
@Override
Since
9.0.