@NotThreadSafe public final class IntArrayStack extends Object implements org.eclipse.collections.api.stack.primitive.MutableIntStack, Externalizable
ArrayStack, and is memory-optimized for int primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor and Description |
|---|
IntArrayStack() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate 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.LazyIntIterable |
asLazy() |
org.eclipse.collections.api.stack.primitive.MutableIntStack |
asSynchronized() |
org.eclipse.collections.api.stack.primitive.MutableIntStack |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> org.eclipse.collections.api.stack.MutableStack<V> |
collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function) |
boolean |
contains(int value) |
boolean |
containsAll(int... source) |
boolean |
containsAll(org.eclipse.collections.api.IntIterable source) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
int |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate,
int ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
boolean |
equals(Object otherStack) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.iterator.IntIterator |
intIterator() |
boolean |
isEmpty() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
int |
max() |
int |
maxIfEmpty(int defaultValue) |
double |
median() |
int |
min() |
int |
minIfEmpty(int defaultValue) |
static IntArrayStack |
newStack(org.eclipse.collections.api.IntIterable items) |
static IntArrayStack |
newStackFromTopToBottom(int... items) |
static IntArrayStack |
newStackFromTopToBottom(org.eclipse.collections.api.IntIterable items) |
static IntArrayStack |
newStackWith(int... items) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
notEmpty() |
int |
peek() |
org.eclipse.collections.api.list.primitive.IntList |
peek(int count) |
int |
peekAt(int index) |
int |
pop() |
org.eclipse.collections.api.list.primitive.IntList |
pop(int count) |
void |
push(int item) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.stack.primitive.MutableIntStack |
reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
org.eclipse.collections.api.stack.primitive.MutableIntStack |
select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
int |
size() |
long |
sum() |
int[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableIntBag |
toBag() |
org.eclipse.collections.api.stack.primitive.ImmutableIntStack |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableIntList |
toList() |
org.eclipse.collections.api.set.primitive.MutableIntSet |
toSet() |
int[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableIntList |
toSortedList() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static IntArrayStack newStackFromTopToBottom(int... items)
public static IntArrayStack newStackWith(int... items)
public static IntArrayStack newStack(org.eclipse.collections.api.IntIterable items)
public static IntArrayStack newStackFromTopToBottom(org.eclipse.collections.api.IntIterable items)
public void push(int item)
push in interface org.eclipse.collections.api.stack.primitive.MutableIntStackpublic int pop()
pop in interface org.eclipse.collections.api.stack.primitive.MutableIntStackpublic org.eclipse.collections.api.list.primitive.IntList pop(int count)
pop in interface org.eclipse.collections.api.stack.primitive.MutableIntStackpublic org.eclipse.collections.api.stack.primitive.MutableIntStack select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
select in interface org.eclipse.collections.api.IntIterableselect in interface org.eclipse.collections.api.stack.primitive.IntStackselect in interface org.eclipse.collections.api.stack.primitive.MutableIntStackpublic org.eclipse.collections.api.stack.primitive.MutableIntStack reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
reject in interface org.eclipse.collections.api.IntIterablereject in interface org.eclipse.collections.api.stack.primitive.IntStackreject in interface org.eclipse.collections.api.stack.primitive.MutableIntStackpublic int peek()
peek in interface org.eclipse.collections.api.stack.primitive.IntStackpublic org.eclipse.collections.api.list.primitive.IntList peek(int count)
peek in interface org.eclipse.collections.api.stack.primitive.IntStackpublic int peekAt(int index)
peekAt in interface org.eclipse.collections.api.stack.primitive.IntStackpublic org.eclipse.collections.api.iterator.IntIterator intIterator()
intIterator in interface org.eclipse.collections.api.IntIterablepublic void forEach(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
forEach in interface org.eclipse.collections.api.IntIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
each in interface org.eclipse.collections.api.IntIterablepublic 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.IntPredicate predicate)
count in interface org.eclipse.collections.api.IntIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.IntIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.IntIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.IntIterablepublic int detectIfNone(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate,
int ifNone)
detectIfNone in interface org.eclipse.collections.api.IntIterablepublic <V> org.eclipse.collections.api.stack.MutableStack<V> collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.IntIterablecollect in interface org.eclipse.collections.api.stack.primitive.IntStackcollect in interface org.eclipse.collections.api.stack.primitive.MutableIntStackpublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.IntIterablepublic long sum()
sum in interface org.eclipse.collections.api.IntIterablepublic int max()
max in interface org.eclipse.collections.api.IntIterablepublic int min()
min in interface org.eclipse.collections.api.IntIterablepublic int minIfEmpty(int defaultValue)
minIfEmpty in interface org.eclipse.collections.api.IntIterablepublic int maxIfEmpty(int defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.IntIterablepublic double average()
average in interface org.eclipse.collections.api.IntIterablepublic double median()
median in interface org.eclipse.collections.api.IntIterablepublic int[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.IntIterablepublic int[] toArray()
toArray in interface org.eclipse.collections.api.IntIterablepublic boolean contains(int value)
contains in interface org.eclipse.collections.api.IntIterablepublic boolean containsAll(int... source)
containsAll in interface org.eclipse.collections.api.IntIterablepublic boolean containsAll(org.eclipse.collections.api.IntIterable source)
containsAll in interface org.eclipse.collections.api.IntIterablepublic void clear()
clear in interface org.eclipse.collections.api.stack.primitive.MutableIntStackpublic 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.MutableIntList toList()
toList in interface org.eclipse.collections.api.IntIterablepublic org.eclipse.collections.api.list.primitive.MutableIntList toSortedList()
toSortedList in interface org.eclipse.collections.api.IntIterablepublic org.eclipse.collections.api.set.primitive.MutableIntSet toSet()
toSet in interface org.eclipse.collections.api.IntIterablepublic org.eclipse.collections.api.bag.primitive.MutableIntBag toBag()
toBag in interface org.eclipse.collections.api.IntIterablepublic org.eclipse.collections.api.LazyIntIterable asLazy()
asLazy in interface org.eclipse.collections.api.IntIterablepublic org.eclipse.collections.api.stack.primitive.MutableIntStack asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.stack.primitive.MutableIntStackpublic org.eclipse.collections.api.stack.primitive.MutableIntStack asSynchronized()
asSynchronized in interface org.eclipse.collections.api.stack.primitive.MutableIntStackpublic org.eclipse.collections.api.stack.primitive.ImmutableIntStack toImmutable()
toImmutable in interface org.eclipse.collections.api.stack.primitive.IntStackpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2018. All rights reserved.