public class CharArrayStack extends AbstractCharStack implements MutableCharStack, Externalizable
ArrayStack, and is memory-optimized for char primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor and Description |
|---|
CharArrayStack() |
| Modifier and Type | Method and Description |
|---|---|
MutableCharStack |
asSynchronized() |
MutableCharStack |
asUnmodifiable() |
void |
clear() |
<V> MutableStack<V> |
collect(CharToObjectFunction<? extends V> function) |
boolean |
equals(Object otherStack) |
int |
hashCode() |
CharArrayStack |
newEmpty()
Creates a new empty CharArrayStack.
|
static CharArrayStack |
newStack(CharIterable items) |
static CharArrayStack |
newStackFromTopToBottom(char... items) |
static CharArrayStack |
newStackFromTopToBottom(CharIterable items) |
static CharArrayStack |
newStackWith(char... items) |
char |
pop() |
CharList |
pop(int count) |
void |
push(char item) |
void |
readExternal(ObjectInput in) |
MutableCharStack |
reject(CharPredicate predicate) |
MutableCharStack |
select(CharPredicate predicate) |
ImmutableCharStack |
toImmutable() |
MutableCharList |
toSortedList() |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, charIterator, chunk, contains, containsAll, containsAll, count, detectIfNone, each, forEachWithIndex, getFirst, indexOf, injectInto, injectIntoWithIndex, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, peek, peek, peekAt, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toStringcollectWithIndex, rejectWithIndex, selectWithIndex, tappeek, peek, peekAtcollectWithIndex, 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, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic 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)
push in interface MutableCharStackpublic char pop()
pop in interface MutableCharStackpublic CharList pop(int count)
pop in interface MutableCharStackpublic MutableCharStack select(CharPredicate predicate)
select in interface CharIterableselect in interface OrderedCharIterableselect in interface CharStackselect in interface MutableCharStackpublic MutableCharStack reject(CharPredicate predicate)
reject in interface CharIterablereject in interface OrderedCharIterablereject in interface CharStackreject in interface MutableCharStackpublic <V> MutableStack<V> collect(CharToObjectFunction<? extends V> function)
collect in interface CharIterablecollect in interface OrderedCharIterablecollect in interface CharStackcollect in interface MutableCharStackpublic void clear()
clear in interface MutableCharStackpublic MutableCharList toSortedList()
toSortedList in interface CharIterablepublic MutableCharStack asUnmodifiable()
asUnmodifiable in interface MutableCharStackpublic MutableCharStack asSynchronized()
asSynchronized in interface MutableCharStackpublic ImmutableCharStack toImmutable()
toImmutable in interface CharStackpublic CharArrayStack newEmpty()
newEmpty in interface MutableCharStackpublic boolean equals(Object otherStack)
equals in interface CharStackequals in class AbstractCharStackpublic int hashCode()
hashCode in interface CharStackhashCode in class AbstractCharStackpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2022. All rights reserved.