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

public Interface MutableCharStack

extends CharStack
Imports
org.eclipse.collections.api.block.function.primitive.CharIntToObjectFunction, .CharToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.CharIntPredicate, .CharPredicate, org.eclipse.collections.api.block.procedure.primitive.CharProcedure, org.eclipse.collections.api.list.primitive.CharList, 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 MutableCharStack
public MutableCharStack
public void
clear()

Clears the Stack

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

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

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

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

public default MutableCharStack
newEmpty()

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

public char
pop()

Removes and returns the top element of the stack.

public CharList
pop(int count)

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

public void
push(char item)

Adds an item to the top of the stack.

public MutableCharStack
reject(CharPredicate predicate)

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

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

public default MutableCharStack
rejectWithIndex(CharIntPredicate predicate)

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

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

public MutableCharStack
select(CharPredicate predicate)

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

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

public default MutableCharStack
selectWithIndex(CharIntPredicate predicate)

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

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

public default MutableCharStack
Inherited from org.eclipse.collections.api.stack.primitive.CharStack:
equalshashCodepeekpeekpeekAttoImmutable

Method Detail

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

Clears the Stack

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

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

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

Overrides default org.eclipse.collections.api.stack.primitive.CharStack.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 MutableCharStack newEmpty()

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

Since
9.2.
popback to summary
public char pop()

Removes and returns the top element of the stack.

popback to summary
public CharList pop(int count)

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

pushback to summary
public void push(char item)

Adds an item to the top of the stack.

rejectback to summary
public MutableCharStack reject(CharPredicate predicate)

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

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

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

Annotations
@Override
rejectWithIndexback to summary
public default MutableCharStack rejectWithIndex(CharIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
selectback to summary
public MutableCharStack select(CharPredicate predicate)

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

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

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

Annotations
@Override
selectWithIndexback to summary
public default MutableCharStack selectWithIndex(CharIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
tapback to summary
public default MutableCharStack tap(CharProcedure procedure)

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

Annotations
@Override
Since
9.0.