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

public Interface ByteStack

extends OrderedByteIterable
Known Direct Subinterfaces
org.eclipse.collections.api.stack.primitive.ImmutableByteStack, org.eclipse.collections.api.stack.primitive.MutableByteStack
Imports
org.eclipse.collections.api.block.function.primitive.ByteIntToObjectFunction, .ByteToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ByteIntPredicate, .BytePredicate, org.eclipse.collections.api.block.procedure.primitive.ByteProcedure, org.eclipse.collections.api.list.primitive.ByteList, org.eclipse.collections.api.ordered.primitive.OrderedByteIterable, 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(ByteToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ordered.primitive.OrderedByteIterable.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(ByteIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedByteIterable.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 byte
peek()

Returns the top of the stack.

public ByteList
peek(int count)

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

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

Returns the element at the specified index.

public ByteStack
reject(BytePredicate predicate)

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

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

public default ByteStack
rejectWithIndex(ByteIntPredicate predicate)

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

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

public ByteStack
select(BytePredicate predicate)

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

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

public default ByteStack
selectWithIndex(ByteIntPredicate predicate)

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

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

public default ByteStack
public ImmutableByteStack
Inherited from org.eclipse.collections.api.ordered.primitive.OrderedByteIterable:
collectWithIndexforEachWithIndexgetFirstindexOfinjectIntoWithIndexrejectWithIndexselectWithIndextoStack

Method Detail

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

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

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

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedByteIterable.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 byte peek()

Returns the top of the stack.

peekback to summary
public ByteList peek(int count)

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

peekAtback to summary
public byte peekAt(int index)

Returns the element at the specified index.

Parameters
index:int

the location to peek into

rejectback to summary
public ByteStack reject(BytePredicate predicate)

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

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

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

Annotations
@Override
rejectWithIndexback to summary
public default ByteStack rejectWithIndex(ByteIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
selectback to summary
public ByteStack select(BytePredicate predicate)

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

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

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

Annotations
@Override
selectWithIndexback to summary
public default ByteStack selectWithIndex(ByteIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
tapback to summary
public default ByteStack tap(ByteProcedure procedure)

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

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