public interface MutableCharStack extends CharStack
| Modifier and Type | Method and Description |
|---|---|
MutableCharStack |
asSynchronized() |
MutableCharStack |
asUnmodifiable() |
void |
clear()
Clears the Stack
|
<V> MutableStack<V> |
collect(CharToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default <V> MutableStack<V> |
collectWithIndex(CharIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default MutableCharStack |
newEmpty()
Creates a new empty mutable version of the same stack type.
|
char |
pop()
Removes and returns the top element of the stack.
|
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.
|
void |
push(char item)
Adds an item to the top of the stack.
|
MutableCharStack |
reject(CharPredicate predicate)
Returns a new CharIterable with all of the elements in the CharIterable that
return false for the specified predicate.
|
default MutableCharStack |
rejectWithIndex(CharIntPredicate predicate)
Returns a new MutableCharStack excluding all elements with corresponding indexes matching the specified predicate.
|
MutableCharStack |
select(CharPredicate predicate)
Returns a new CharIterable with all of the elements in the CharIterable that
return true for the specified predicate.
|
default MutableCharStack |
selectWithIndex(CharIntPredicate predicate)
Returns a new MutableCharStack including all elements with corresponding indexes matching the specified predicate.
|
default MutableCharStack |
tap(CharProcedure procedure) |
equals, hashCode, peek, peek, peekAt, toImmutablecollectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex, rejectWithIndex, selectWithIndexallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, charIterator, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid push(char item)
char pop()
CharList pop(int count)
void clear()
MutableCharStack select(CharPredicate predicate)
CharIterableselect in interface CharIterableselect in interface CharStackselect in interface OrderedCharIterableMutableCharStack reject(CharPredicate predicate)
CharIterablereject in interface CharIterablereject in interface CharStackreject in interface OrderedCharIterabledefault MutableCharStack tap(CharProcedure procedure)
tap in interface CharIterabletap in interface CharStack<V> MutableStack<V> collect(CharToObjectFunction<? extends V> function)
CharIterablecollect in interface CharIterablecollect in interface CharStackcollect in interface OrderedCharIterabledefault MutableCharStack selectWithIndex(CharIntPredicate predicate)
selectWithIndex in interface CharStackselectWithIndex in interface OrderedCharIterabledefault MutableCharStack rejectWithIndex(CharIntPredicate predicate)
rejectWithIndex in interface CharStackrejectWithIndex in interface OrderedCharIterabledefault <V> MutableStack<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)
collectWithIndex in interface CharStackcollectWithIndex in interface OrderedCharIterableMutableCharStack asUnmodifiable()
MutableCharStack asSynchronized()
default MutableCharStack newEmpty()
Copyright © 2004–2023. All rights reserved.