@NotThreadSafe public final class FloatArrayStack extends Object implements org.eclipse.collections.api.stack.primitive.MutableFloatStack, Externalizable
ArrayStack, and is memory-optimized for float primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor and Description |
|---|
FloatArrayStack() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate 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.LazyFloatIterable |
asLazy() |
org.eclipse.collections.api.stack.primitive.MutableFloatStack |
asSynchronized() |
org.eclipse.collections.api.stack.primitive.MutableFloatStack |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> org.eclipse.collections.api.stack.MutableStack<V> |
collect(org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction<? extends V> function) |
boolean |
contains(float value) |
boolean |
containsAll(float... source) |
boolean |
containsAll(org.eclipse.collections.api.FloatIterable source) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
float |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
boolean |
equals(Object otherStack) |
org.eclipse.collections.api.iterator.FloatIterator |
floatIterator() |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
float |
max() |
float |
maxIfEmpty(float defaultValue) |
double |
median() |
float |
min() |
float |
minIfEmpty(float defaultValue) |
static FloatArrayStack |
newStack(org.eclipse.collections.api.FloatIterable items) |
static FloatArrayStack |
newStackFromTopToBottom(float... items) |
static FloatArrayStack |
newStackFromTopToBottom(org.eclipse.collections.api.FloatIterable items) |
static FloatArrayStack |
newStackWith(float... items) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
notEmpty() |
float |
peek() |
org.eclipse.collections.api.list.primitive.FloatList |
peek(int count) |
float |
peekAt(int index) |
float |
pop() |
org.eclipse.collections.api.list.primitive.FloatList |
pop(int count) |
void |
push(float item) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.stack.primitive.MutableFloatStack |
reject(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
org.eclipse.collections.api.stack.primitive.MutableFloatStack |
select(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
int |
size() |
double |
sum() |
float[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableFloatBag |
toBag() |
org.eclipse.collections.api.stack.primitive.ImmutableFloatStack |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableFloatList |
toList() |
org.eclipse.collections.api.set.primitive.MutableFloatSet |
toSet() |
float[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableFloatList |
toSortedList() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static FloatArrayStack newStackFromTopToBottom(float... items)
public static FloatArrayStack newStackWith(float... items)
public static FloatArrayStack newStack(org.eclipse.collections.api.FloatIterable items)
public static FloatArrayStack newStackFromTopToBottom(org.eclipse.collections.api.FloatIterable items)
public void push(float item)
push in interface org.eclipse.collections.api.stack.primitive.MutableFloatStackpublic float pop()
pop in interface org.eclipse.collections.api.stack.primitive.MutableFloatStackpublic org.eclipse.collections.api.list.primitive.FloatList pop(int count)
pop in interface org.eclipse.collections.api.stack.primitive.MutableFloatStackpublic org.eclipse.collections.api.stack.primitive.MutableFloatStack select(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
select in interface org.eclipse.collections.api.FloatIterableselect in interface org.eclipse.collections.api.stack.primitive.FloatStackselect in interface org.eclipse.collections.api.stack.primitive.MutableFloatStackpublic org.eclipse.collections.api.stack.primitive.MutableFloatStack reject(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
reject in interface org.eclipse.collections.api.FloatIterablereject in interface org.eclipse.collections.api.stack.primitive.FloatStackreject in interface org.eclipse.collections.api.stack.primitive.MutableFloatStackpublic float peek()
peek in interface org.eclipse.collections.api.stack.primitive.FloatStackpublic org.eclipse.collections.api.list.primitive.FloatList peek(int count)
peek in interface org.eclipse.collections.api.stack.primitive.FloatStackpublic float peekAt(int index)
peekAt in interface org.eclipse.collections.api.stack.primitive.FloatStackpublic org.eclipse.collections.api.iterator.FloatIterator floatIterator()
floatIterator in interface org.eclipse.collections.api.FloatIterablepublic void forEach(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEach in interface org.eclipse.collections.api.FloatIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure)
each in interface org.eclipse.collections.api.FloatIterablepublic 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.FloatPredicate predicate)
count in interface org.eclipse.collections.api.FloatIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.FloatIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.FloatIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.FloatIterablepublic float detectIfNone(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone)
detectIfNone in interface org.eclipse.collections.api.FloatIterablepublic <V> org.eclipse.collections.api.stack.MutableStack<V> collect(org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.FloatIterablecollect in interface org.eclipse.collections.api.stack.primitive.FloatStackcollect in interface org.eclipse.collections.api.stack.primitive.MutableFloatStackpublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.FloatIterablepublic double sum()
sum in interface org.eclipse.collections.api.FloatIterablepublic float max()
max in interface org.eclipse.collections.api.FloatIterablepublic float min()
min in interface org.eclipse.collections.api.FloatIterablepublic float minIfEmpty(float defaultValue)
minIfEmpty in interface org.eclipse.collections.api.FloatIterablepublic float maxIfEmpty(float defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.FloatIterablepublic double average()
average in interface org.eclipse.collections.api.FloatIterablepublic double median()
median in interface org.eclipse.collections.api.FloatIterablepublic float[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.FloatIterablepublic float[] toArray()
toArray in interface org.eclipse.collections.api.FloatIterablepublic boolean contains(float value)
contains in interface org.eclipse.collections.api.FloatIterablepublic boolean containsAll(float... source)
containsAll in interface org.eclipse.collections.api.FloatIterablepublic boolean containsAll(org.eclipse.collections.api.FloatIterable source)
containsAll in interface org.eclipse.collections.api.FloatIterablepublic void clear()
clear in interface org.eclipse.collections.api.stack.primitive.MutableFloatStackpublic 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.MutableFloatList toList()
toList in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.list.primitive.MutableFloatList toSortedList()
toSortedList in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.set.primitive.MutableFloatSet toSet()
toSet in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.bag.primitive.MutableFloatBag toBag()
toBag in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.LazyFloatIterable asLazy()
asLazy in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.stack.primitive.MutableFloatStack asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.stack.primitive.MutableFloatStackpublic org.eclipse.collections.api.stack.primitive.MutableFloatStack asSynchronized()
asSynchronized in interface org.eclipse.collections.api.stack.primitive.MutableFloatStackpublic org.eclipse.collections.api.stack.primitive.ImmutableFloatStack toImmutable()
toImmutable in interface org.eclipse.collections.api.stack.primitive.FloatStackpublic 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.