@NotThreadSafe public final class CharArrayStack extends Object implements org.eclipse.collections.api.stack.primitive.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 |
|---|---|
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyCharIterable |
asLazy() |
org.eclipse.collections.api.stack.primitive.MutableCharStack |
asSynchronized() |
org.eclipse.collections.api.stack.primitive.MutableCharStack |
asUnmodifiable() |
double |
average() |
org.eclipse.collections.api.iterator.CharIterator |
charIterator() |
void |
clear() |
<V> org.eclipse.collections.api.stack.MutableStack<V> |
collect(org.eclipse.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function) |
boolean |
contains(char value) |
boolean |
containsAll(char... source) |
boolean |
containsAll(org.eclipse.collections.api.CharIterable source) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
char |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
boolean |
equals(Object otherStack) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
char |
max() |
char |
maxIfEmpty(char defaultValue) |
double |
median() |
char |
min() |
char |
minIfEmpty(char defaultValue) |
static CharArrayStack |
newStack(org.eclipse.collections.api.CharIterable items) |
static CharArrayStack |
newStackFromTopToBottom(char... items) |
static CharArrayStack |
newStackFromTopToBottom(org.eclipse.collections.api.CharIterable items) |
static CharArrayStack |
newStackWith(char... items) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
notEmpty() |
char |
peek() |
org.eclipse.collections.api.list.primitive.CharList |
peek(int count) |
char |
peekAt(int index) |
char |
pop() |
org.eclipse.collections.api.list.primitive.CharList |
pop(int count) |
void |
push(char item) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.stack.primitive.MutableCharStack |
reject(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
org.eclipse.collections.api.stack.primitive.MutableCharStack |
select(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
int |
size() |
long |
sum() |
char[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableCharBag |
toBag() |
org.eclipse.collections.api.stack.primitive.ImmutableCharStack |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableCharList |
toList() |
org.eclipse.collections.api.set.primitive.MutableCharSet |
toSet() |
char[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableCharList |
toSortedList() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static CharArrayStack newStackFromTopToBottom(char... items)
public static CharArrayStack newStackWith(char... items)
public static CharArrayStack newStack(org.eclipse.collections.api.CharIterable items)
public static CharArrayStack newStackFromTopToBottom(org.eclipse.collections.api.CharIterable items)
public void push(char item)
push in interface org.eclipse.collections.api.stack.primitive.MutableCharStackpublic char pop()
pop in interface org.eclipse.collections.api.stack.primitive.MutableCharStackpublic org.eclipse.collections.api.list.primitive.CharList pop(int count)
pop in interface org.eclipse.collections.api.stack.primitive.MutableCharStackpublic org.eclipse.collections.api.stack.primitive.MutableCharStack select(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
select in interface org.eclipse.collections.api.CharIterableselect in interface org.eclipse.collections.api.stack.primitive.CharStackselect in interface org.eclipse.collections.api.stack.primitive.MutableCharStackpublic org.eclipse.collections.api.stack.primitive.MutableCharStack reject(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
reject in interface org.eclipse.collections.api.CharIterablereject in interface org.eclipse.collections.api.stack.primitive.CharStackreject in interface org.eclipse.collections.api.stack.primitive.MutableCharStackpublic char peek()
peek in interface org.eclipse.collections.api.stack.primitive.CharStackpublic org.eclipse.collections.api.list.primitive.CharList peek(int count)
peek in interface org.eclipse.collections.api.stack.primitive.CharStackpublic char peekAt(int index)
peekAt in interface org.eclipse.collections.api.stack.primitive.CharStackpublic org.eclipse.collections.api.iterator.CharIterator charIterator()
charIterator in interface org.eclipse.collections.api.CharIterablepublic void forEach(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
forEach in interface org.eclipse.collections.api.CharIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
each in interface org.eclipse.collections.api.CharIterablepublic int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
count in interface org.eclipse.collections.api.CharIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.CharIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.CharIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.CharIterablepublic char detectIfNone(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone)
detectIfNone in interface org.eclipse.collections.api.CharIterablepublic <V> org.eclipse.collections.api.stack.MutableStack<V> collect(org.eclipse.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.CharIterablecollect in interface org.eclipse.collections.api.stack.primitive.CharStackcollect in interface org.eclipse.collections.api.stack.primitive.MutableCharStackpublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.CharIterablepublic long sum()
sum in interface org.eclipse.collections.api.CharIterablepublic char max()
max in interface org.eclipse.collections.api.CharIterablepublic char min()
min in interface org.eclipse.collections.api.CharIterablepublic char minIfEmpty(char defaultValue)
minIfEmpty in interface org.eclipse.collections.api.CharIterablepublic char maxIfEmpty(char defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.CharIterablepublic double average()
average in interface org.eclipse.collections.api.CharIterablepublic double median()
median in interface org.eclipse.collections.api.CharIterablepublic char[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.CharIterablepublic char[] toArray()
toArray in interface org.eclipse.collections.api.CharIterablepublic boolean contains(char value)
contains in interface org.eclipse.collections.api.CharIterablepublic boolean containsAll(char... source)
containsAll in interface org.eclipse.collections.api.CharIterablepublic boolean containsAll(org.eclipse.collections.api.CharIterable source)
containsAll in interface org.eclipse.collections.api.CharIterablepublic void clear()
clear in interface org.eclipse.collections.api.stack.primitive.MutableCharStackpublic boolean equals(Object otherStack)
public int hashCode()
public String toString()
public String makeString()
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String separator)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic org.eclipse.collections.api.list.primitive.MutableCharList toList()
toList in interface org.eclipse.collections.api.CharIterablepublic org.eclipse.collections.api.list.primitive.MutableCharList toSortedList()
toSortedList in interface org.eclipse.collections.api.CharIterablepublic org.eclipse.collections.api.set.primitive.MutableCharSet toSet()
toSet in interface org.eclipse.collections.api.CharIterablepublic org.eclipse.collections.api.bag.primitive.MutableCharBag toBag()
toBag in interface org.eclipse.collections.api.CharIterablepublic org.eclipse.collections.api.LazyCharIterable asLazy()
asLazy in interface org.eclipse.collections.api.CharIterablepublic org.eclipse.collections.api.stack.primitive.MutableCharStack asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.stack.primitive.MutableCharStackpublic org.eclipse.collections.api.stack.primitive.MutableCharStack asSynchronized()
asSynchronized in interface org.eclipse.collections.api.stack.primitive.MutableCharStackpublic org.eclipse.collections.api.stack.primitive.ImmutableCharStack toImmutable()
toImmutable in interface org.eclipse.collections.api.stack.primitive.CharStackpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2017. All rights reserved.