CharIterable
, CharStack
, OrderedCharIterable
, PrimitiveIterable
CharArrayStack
, SynchronizedCharStack
, UnmodifiableCharStack
public interface MutableCharStack extends CharStack
Modifier and Type | Method | 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.
|
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.
|
MutableCharStack |
select(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return true for the specified predicate.
|
allSatisfy, anySatisfy, asLazy, average, charIterator, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
equals, hashCode, peek, peek, peekAt, toImmutable
forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
void push(char item)
char pop()
CharList pop(int count)
void clear()
MutableCharStack select(CharPredicate predicate)
CharIterable
select
in interface CharIterable
select
in interface CharStack
select
in interface OrderedCharIterable
MutableCharStack reject(CharPredicate predicate)
CharIterable
reject
in interface CharIterable
reject
in interface CharStack
reject
in interface OrderedCharIterable
<V> MutableStack<V> collect(CharToObjectFunction<? extends V> function)
CharIterable
collect
in interface CharIterable
collect
in interface CharStack
collect
in interface OrderedCharIterable
MutableCharStack asUnmodifiable()
MutableCharStack asSynchronized()
Copyright © 2004–2017. All rights reserved.