public interface CharStack extends CharIterable
Modifier and Type | Method and Description |
---|---|
<V> StackIterable<V> |
collect(CharToObjectFunction<? extends V> function) |
boolean |
equals(Object o)
Follows the same general contract as
StackIterable.equals(Object) . |
int |
hashCode()
Follows the same general contract as
StackIterable.hashCode() . |
char |
peek()
Returns the top of the stack.
|
CharList |
peek(int count)
Returns CharList of the number of elements specified by the count, beginning with the top of the stack.
|
char |
peekAt(int index)
Returns the element at the specified index.
|
CharStack |
reject(CharPredicate predicate) |
CharStack |
select(CharPredicate predicate) |
ImmutableCharStack |
toImmutable() |
allSatisfy, anySatisfy, asLazy, average, charIterator, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
char peek()
CharList peek(int count)
char peekAt(int index)
index
- the location to peek intoCharStack select(CharPredicate predicate)
select
in interface CharIterable
CharStack reject(CharPredicate predicate)
reject
in interface CharIterable
<V> StackIterable<V> collect(CharToObjectFunction<? extends V> function)
collect
in interface CharIterable
boolean equals(Object o)
StackIterable.equals(Object)
.int hashCode()
StackIterable.hashCode()
.ImmutableCharStack toImmutable()
Copyright © 2004–2016. All rights reserved.