Class AbstractFloatStack
- java.lang.Object
-
- org.eclipse.collections.impl.stack.primitive.AbstractFloatStack
-
- All Implemented Interfaces:
FloatIterable,OrderedFloatIterable,PrimitiveIterable,FloatStack
- Direct Known Subclasses:
FloatArrayStack
public abstract class AbstractFloatStack extends Object implements FloatStack
This file was automatically generated from template file abstractPrimitiveStack.stg.
-
-
Constructor Summary
Constructors Constructor Description AbstractFloatStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallSatisfy(FloatPredicate predicate)booleananySatisfy(FloatPredicate predicate)voidappendString(Appendable appendable)voidappendString(Appendable appendable, String separator)voidappendString(Appendable appendable, String start, String separator, String end)LazyFloatIterableasLazy()doubleaverage()RichIterable<FloatIterable>chunk(int size)booleancontains(float value)booleancontainsAll(float... source)booleancontainsAll(FloatIterable source)intcount(FloatPredicate predicate)floatdetectIfNone(FloatPredicate predicate, float ifNone)voideach(FloatProcedure procedure)booleanequals(Object otherStack)FloatIteratorfloatIterator()voidforEachWithIndex(FloatIntProcedure procedure)floatgetFirst()inthashCode()intindexOf(float value)<V> VinjectInto(V injectedValue, ObjectFloatToObjectFunction<? super V,? extends V> function)<T> TinjectIntoWithIndex(T injectedValue, ObjectFloatIntToObjectFunction<? super T,? extends T> function)StringmakeString()StringmakeString(String separator)StringmakeString(String start, String separator, String end)floatmax()floatmaxIfEmpty(float defaultValue)doublemedian()floatmin()floatminIfEmpty(float defaultValue)booleannoneSatisfy(FloatPredicate predicate)floatpeek()FloatListpeek(int count)floatpeekAt(int index)intsize()doublesum()float[]toArray()float[]toArray(float[] target)MutableFloatBagtoBag()MutableFloatListtoList()MutableFloatSettoSet()float[]toSortedArray()StringtoString()-
Methods inherited from interface org.eclipse.collections.api.FloatIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.stack.primitive.FloatStack
collect, collectWithIndex, reject, rejectWithIndex, select, selectWithIndex, tap, toImmutable
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable
collectWithIndex, rejectWithIndex, selectWithIndex
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
isEmpty, notEmpty
-
-
-
-
Method Detail
-
peek
public float peek()
- Specified by:
peekin interfaceFloatStack
-
peek
public FloatList peek(int count)
- Specified by:
peekin interfaceFloatStack
-
peekAt
public float peekAt(int index)
- Specified by:
peekAtin interfaceFloatStack
-
floatIterator
public FloatIterator floatIterator()
- Specified by:
floatIteratorin interfaceFloatIterable
-
each
public void each(FloatProcedure procedure)
- Specified by:
eachin interfaceFloatIterable- Since:
- 7.0.
-
count
public int count(FloatPredicate predicate)
- Specified by:
countin interfaceFloatIterable
-
anySatisfy
public boolean anySatisfy(FloatPredicate predicate)
- Specified by:
anySatisfyin interfaceFloatIterable
-
allSatisfy
public boolean allSatisfy(FloatPredicate predicate)
- Specified by:
allSatisfyin interfaceFloatIterable
-
noneSatisfy
public boolean noneSatisfy(FloatPredicate predicate)
- Specified by:
noneSatisfyin interfaceFloatIterable
-
detectIfNone
public float detectIfNone(FloatPredicate predicate, float ifNone)
- Specified by:
detectIfNonein interfaceFloatIterable
-
toArray
public float[] toArray()
- Specified by:
toArrayin interfaceFloatIterable
-
toArray
public float[] toArray(float[] target)
- Specified by:
toArrayin interfaceFloatIterable
-
contains
public boolean contains(float value)
- Specified by:
containsin interfaceFloatIterable
-
containsAll
public boolean containsAll(float... source)
- Specified by:
containsAllin interfaceFloatIterable
-
containsAll
public boolean containsAll(FloatIterable source)
- Specified by:
containsAllin interfaceFloatIterable
-
toList
public MutableFloatList toList()
- Specified by:
toListin interfaceFloatIterable
-
toSet
public MutableFloatSet toSet()
- Specified by:
toSetin interfaceFloatIterable
-
toBag
public MutableFloatBag toBag()
- Specified by:
toBagin interfaceFloatIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectFloatToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceFloatIterable
-
asLazy
public LazyFloatIterable asLazy()
- Specified by:
asLazyin interfaceFloatIterable
-
size
public int size()
- Specified by:
sizein interfacePrimitiveIterable
-
equals
public boolean equals(Object otherStack)
- Specified by:
equalsin interfaceFloatStack- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatStack- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
getFirst
public float getFirst()
- Specified by:
getFirstin interfaceOrderedFloatIterable
-
indexOf
public int indexOf(float value)
- Specified by:
indexOfin interfaceOrderedFloatIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectFloatIntToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoWithIndexin interfaceOrderedFloatIterable
-
forEachWithIndex
public void forEachWithIndex(FloatIntProcedure procedure)
- Specified by:
forEachWithIndexin interfaceOrderedFloatIterable
-
chunk
public RichIterable<FloatIterable> chunk(int size)
- Specified by:
chunkin interfaceFloatIterable
-
sum
public double sum()
- Specified by:
sumin interfaceFloatIterable
-
max
public float max()
- Specified by:
maxin interfaceFloatIterable
-
min
public float min()
- Specified by:
minin interfaceFloatIterable
-
minIfEmpty
public float minIfEmpty(float defaultValue)
- Specified by:
minIfEmptyin interfaceFloatIterable
-
maxIfEmpty
public float maxIfEmpty(float defaultValue)
- Specified by:
maxIfEmptyin interfaceFloatIterable
-
average
public double average()
- Specified by:
averagein interfaceFloatIterable
-
median
public double median()
- Specified by:
medianin interfaceFloatIterable
-
toSortedArray
public float[] toSortedArray()
- Specified by:
toSortedArrayin interfaceFloatIterable
-
-