Class AbstractFloatIterable
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractFloatIterable
- All Implemented Interfaces:
FloatIterable
,PrimitiveIterable
- Direct Known Subclasses:
AbstractFloatSet
,AbstractMutableFloatValuesMap
,FloatArrayList
,FloatHashBag
public abstract class AbstractFloatIterable extends Object implements FloatIterable
This file was automatically generated from template file abstractPrimitiveIterable.stg.
- Since:
- 6.0
-
Constructor Summary
Constructors Constructor Description AbstractFloatIterable()
-
Method Summary
Modifier and Type Method Description LazyFloatIterable
asLazy()
Returns a LazyFloatIterable adapter wrapping the source FloatIterable.double
average()
boolean
containsAll(float... source)
Returns true if the all of the values specified in the source array are contained in the FloatIterable, and false if they are not.boolean
containsAll(FloatIterable source)
Returns true if the all of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are not.float
maxIfEmpty(float defaultValue)
double
median()
float
minIfEmpty(float defaultValue)
MutableFloatBag
toBag()
Converts the FloatIterable to a new MutableFloatBag.MutableFloatList
toList()
Converts the FloatIterable to a new MutableFloatList.MutableFloatSet
toSet()
Converts the FloatIterable to a new MutableFloatSet.float[]
toSortedArray()
MutableFloatList
toSortedList()
String
toString()
Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.collections.api.FloatIterable
allSatisfy, anySatisfy, averageIfEmpty, chunk, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, count, detectIfNone, each, flatCollect, floatIterator, forEach, injectInto, max, medianIfEmpty, min, noneSatisfy, reduce, reduceIfEmpty, reject, reject, select, select, sum, summaryStatistics, tap, toArray, toArray
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
AbstractFloatIterable
public AbstractFloatIterable()
-
-
Method Details
-
toString
Description copied from interface:PrimitiveIterable
Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.Assert.assertEquals("[]", IntLists.mutable.empty().toString()); Assert.assertEquals("[1]", IntLists.mutable.with(1).toString()); Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
- Returns:
- a string representation of this PrimitiveIterable
- See Also:
AbstractCollection.toString()
-
minIfEmpty
public float minIfEmpty(float defaultValue)- Specified by:
minIfEmpty
in interfaceFloatIterable
-
maxIfEmpty
public float maxIfEmpty(float defaultValue)- Specified by:
maxIfEmpty
in interfaceFloatIterable
-
average
public double average()- Specified by:
average
in interfaceFloatIterable
-
median
public double median()- Specified by:
median
in interfaceFloatIterable
-
toSortedArray
public float[] toSortedArray()- Specified by:
toSortedArray
in interfaceFloatIterable
-
toSortedList
- Specified by:
toSortedList
in interfaceFloatIterable
-
asLazy
Description copied from interface:FloatIterable
Returns a LazyFloatIterable adapter wrapping the source FloatIterable.- Specified by:
asLazy
in interfaceFloatIterable
-
toList
Description copied from interface:FloatIterable
Converts the FloatIterable to a new MutableFloatList.- Specified by:
toList
in interfaceFloatIterable
-
toSet
Description copied from interface:FloatIterable
Converts the FloatIterable to a new MutableFloatSet.- Specified by:
toSet
in interfaceFloatIterable
-
toBag
Description copied from interface:FloatIterable
Converts the FloatIterable to a new MutableFloatBag.- Specified by:
toBag
in interfaceFloatIterable
-
containsAll
public boolean containsAll(float... source)Description copied from interface:FloatIterable
Returns true if the all of the values specified in the source array are contained in the FloatIterable, and false if they are not.- Specified by:
containsAll
in interfaceFloatIterable
-
containsAll
Description copied from interface:FloatIterable
Returns true if the all of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are not.- Specified by:
containsAll
in interfaceFloatIterable
-