java.io.Externalizable
, java.io.Serializable
, CharIterable
, OrderedCharIterable
, PrimitiveIterable
, CharStack
, MutableCharStack
public final class CharArrayStack extends AbstractCharStack implements MutableCharStack, java.io.Externalizable
ArrayStack
, and is memory-optimized for char primitives.
This file was automatically generated from template file primitiveArrayStack.stg.Constructor | Description |
---|---|
CharArrayStack() |
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.
|
static CharArrayStack |
newStack(CharIterable items) |
|
static CharArrayStack |
newStackFromTopToBottom(char... items) |
|
static CharArrayStack |
newStackFromTopToBottom(CharIterable items) |
|
static CharArrayStack |
newStackWith(char... items) |
|
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.
|
void |
readExternal(java.io.ObjectInput in) |
|
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.
|
ImmutableCharStack |
toImmutable() |
|
MutableCharList |
toSortedList() |
|
void |
writeExternal(java.io.ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, charIterator, contains, containsAll, containsAll, count, detectIfNone, each, equals, forEach, forEachWithIndex, getFirst, hashCode, indexOf, injectInto, injectIntoWithIndex, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, peek, peek, peekAt, size, sum, toArray, toBag, toList, toSet, toSortedArray, toString
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, charIterator, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray
equals, hashCode, peek, peek, peekAt
tap
forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public static CharArrayStack newStackFromTopToBottom(char... items)
public static CharArrayStack newStackWith(char... items)
public static CharArrayStack newStack(CharIterable items)
public static CharArrayStack newStackFromTopToBottom(CharIterable items)
public void push(char item)
MutableCharStack
push
in interface MutableCharStack
public char pop()
MutableCharStack
pop
in interface MutableCharStack
public CharList pop(int count)
MutableCharStack
pop
in interface MutableCharStack
public MutableCharStack select(CharPredicate predicate)
CharIterable
select
in interface CharIterable
select
in interface CharStack
select
in interface MutableCharStack
select
in interface OrderedCharIterable
public MutableCharStack reject(CharPredicate predicate)
CharIterable
reject
in interface CharIterable
reject
in interface CharStack
reject
in interface MutableCharStack
reject
in interface OrderedCharIterable
public <V> MutableStack<V> collect(CharToObjectFunction<? extends V> function)
CharIterable
collect
in interface CharIterable
collect
in interface CharStack
collect
in interface MutableCharStack
collect
in interface OrderedCharIterable
public void clear()
MutableCharStack
clear
in interface MutableCharStack
public MutableCharList toSortedList()
toSortedList
in interface CharIterable
public MutableCharStack asUnmodifiable()
asUnmodifiable
in interface MutableCharStack
public MutableCharStack asSynchronized()
asSynchronized
in interface MutableCharStack
public ImmutableCharStack toImmutable()
toImmutable
in interface CharStack
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
readExternal
in interface java.io.Externalizable
java.io.IOException
Copyright © 2004–2017. All rights reserved.