@NotThreadSafe public final class ShortArrayStack extends Object implements org.eclipse.collections.api.stack.primitive.MutableShortStack, Externalizable
ArrayStack, and is memory-optimized for short primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor and Description |
|---|
ShortArrayStack() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate 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.LazyShortIterable |
asLazy() |
org.eclipse.collections.api.stack.primitive.MutableShortStack |
asSynchronized() |
org.eclipse.collections.api.stack.primitive.MutableShortStack |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> org.eclipse.collections.api.stack.MutableStack<V> |
collect(org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function) |
boolean |
contains(short value) |
boolean |
containsAll(short... source) |
boolean |
containsAll(org.eclipse.collections.api.ShortIterable source) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
short |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate,
short ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure) |
boolean |
equals(Object otherStack) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
short |
max() |
short |
maxIfEmpty(short defaultValue) |
double |
median() |
short |
min() |
short |
minIfEmpty(short defaultValue) |
static ShortArrayStack |
newStack(org.eclipse.collections.api.ShortIterable items) |
static ShortArrayStack |
newStackFromTopToBottom(short... items) |
static ShortArrayStack |
newStackFromTopToBottom(org.eclipse.collections.api.ShortIterable items) |
static ShortArrayStack |
newStackWith(short... items) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
boolean |
notEmpty() |
short |
peek() |
org.eclipse.collections.api.list.primitive.ShortList |
peek(int count) |
short |
peekAt(int index) |
short |
pop() |
org.eclipse.collections.api.list.primitive.ShortList |
pop(int count) |
void |
push(short item) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.stack.primitive.MutableShortStack |
reject(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
org.eclipse.collections.api.stack.primitive.MutableShortStack |
select(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
org.eclipse.collections.api.iterator.ShortIterator |
shortIterator() |
int |
size() |
long |
sum() |
short[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableShortBag |
toBag() |
org.eclipse.collections.api.stack.primitive.ImmutableShortStack |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableShortList |
toList() |
org.eclipse.collections.api.set.primitive.MutableShortSet |
toSet() |
short[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableShortList |
toSortedList() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static ShortArrayStack newStackFromTopToBottom(short... items)
public static ShortArrayStack newStackWith(short... items)
public static ShortArrayStack newStack(org.eclipse.collections.api.ShortIterable items)
public static ShortArrayStack newStackFromTopToBottom(org.eclipse.collections.api.ShortIterable items)
public void push(short item)
push in interface org.eclipse.collections.api.stack.primitive.MutableShortStackpublic short pop()
pop in interface org.eclipse.collections.api.stack.primitive.MutableShortStackpublic org.eclipse.collections.api.list.primitive.ShortList pop(int count)
pop in interface org.eclipse.collections.api.stack.primitive.MutableShortStackpublic org.eclipse.collections.api.stack.primitive.MutableShortStack select(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
select in interface org.eclipse.collections.api.ShortIterableselect in interface org.eclipse.collections.api.stack.primitive.MutableShortStackselect in interface org.eclipse.collections.api.stack.primitive.ShortStackpublic org.eclipse.collections.api.stack.primitive.MutableShortStack reject(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
reject in interface org.eclipse.collections.api.ShortIterablereject in interface org.eclipse.collections.api.stack.primitive.MutableShortStackreject in interface org.eclipse.collections.api.stack.primitive.ShortStackpublic short peek()
peek in interface org.eclipse.collections.api.stack.primitive.ShortStackpublic org.eclipse.collections.api.list.primitive.ShortList peek(int count)
peek in interface org.eclipse.collections.api.stack.primitive.ShortStackpublic short peekAt(int index)
peekAt in interface org.eclipse.collections.api.stack.primitive.ShortStackpublic org.eclipse.collections.api.iterator.ShortIterator shortIterator()
shortIterator in interface org.eclipse.collections.api.ShortIterablepublic void forEach(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEach in interface org.eclipse.collections.api.ShortIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
each in interface org.eclipse.collections.api.ShortIterablepublic 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.ShortPredicate predicate)
count in interface org.eclipse.collections.api.ShortIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.ShortIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.ShortIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.ShortIterablepublic short detectIfNone(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate,
short ifNone)
detectIfNone in interface org.eclipse.collections.api.ShortIterablepublic <V> org.eclipse.collections.api.stack.MutableStack<V> collect(org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.ShortIterablecollect in interface org.eclipse.collections.api.stack.primitive.MutableShortStackcollect in interface org.eclipse.collections.api.stack.primitive.ShortStackpublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.ShortIterablepublic long sum()
sum in interface org.eclipse.collections.api.ShortIterablepublic short max()
max in interface org.eclipse.collections.api.ShortIterablepublic short min()
min in interface org.eclipse.collections.api.ShortIterablepublic short minIfEmpty(short defaultValue)
minIfEmpty in interface org.eclipse.collections.api.ShortIterablepublic short maxIfEmpty(short defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.ShortIterablepublic double average()
average in interface org.eclipse.collections.api.ShortIterablepublic double median()
median in interface org.eclipse.collections.api.ShortIterablepublic short[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.ShortIterablepublic short[] toArray()
toArray in interface org.eclipse.collections.api.ShortIterablepublic boolean contains(short value)
contains in interface org.eclipse.collections.api.ShortIterablepublic boolean containsAll(short... source)
containsAll in interface org.eclipse.collections.api.ShortIterablepublic boolean containsAll(org.eclipse.collections.api.ShortIterable source)
containsAll in interface org.eclipse.collections.api.ShortIterablepublic void clear()
clear in interface org.eclipse.collections.api.stack.primitive.MutableShortStackpublic 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.MutableShortList toList()
toList in interface org.eclipse.collections.api.ShortIterablepublic org.eclipse.collections.api.list.primitive.MutableShortList toSortedList()
toSortedList in interface org.eclipse.collections.api.ShortIterablepublic org.eclipse.collections.api.set.primitive.MutableShortSet toSet()
toSet in interface org.eclipse.collections.api.ShortIterablepublic org.eclipse.collections.api.bag.primitive.MutableShortBag toBag()
toBag in interface org.eclipse.collections.api.ShortIterablepublic org.eclipse.collections.api.LazyShortIterable asLazy()
asLazy in interface org.eclipse.collections.api.ShortIterablepublic org.eclipse.collections.api.stack.primitive.MutableShortStack asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.stack.primitive.MutableShortStackpublic org.eclipse.collections.api.stack.primitive.MutableShortStack asSynchronized()
asSynchronized in interface org.eclipse.collections.api.stack.primitive.MutableShortStackpublic org.eclipse.collections.api.stack.primitive.ImmutableShortStack toImmutable()
toImmutable in interface org.eclipse.collections.api.stack.primitive.ShortStackpublic 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.