FloatIterable
, PrimitiveIterable
AbstractFloatSet
, AbstractMutableFloatValuesMap
, FloatArrayList
, FloatHashBag
public abstract class AbstractFloatIterable extends Object implements FloatIterable
Constructor | Description |
---|---|
AbstractFloatIterable() |
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.
|
allSatisfy, anySatisfy, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, count, detectIfNone, each, flatCollect, floatIterator, forEach, injectInto, max, min, noneSatisfy, reject, reject, select, select, sum, summaryStatistics, toArray
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
public String toString()
PrimitiveIterable
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());
toString
in interface PrimitiveIterable
toString
in class Object
AbstractCollection.toString()
public float minIfEmpty(float defaultValue)
minIfEmpty
in interface FloatIterable
public float maxIfEmpty(float defaultValue)
maxIfEmpty
in interface FloatIterable
public double average()
average
in interface FloatIterable
public double median()
median
in interface FloatIterable
public float[] toSortedArray()
toSortedArray
in interface FloatIterable
public MutableFloatList toSortedList()
toSortedList
in interface FloatIterable
public LazyFloatIterable asLazy()
FloatIterable
asLazy
in interface FloatIterable
public MutableFloatList toList()
FloatIterable
toList
in interface FloatIterable
public MutableFloatSet toSet()
FloatIterable
toSet
in interface FloatIterable
public MutableFloatBag toBag()
FloatIterable
toBag
in interface FloatIterable
public boolean containsAll(float... source)
FloatIterable
containsAll
in interface FloatIterable
public boolean containsAll(FloatIterable source)
FloatIterable
containsAll
in interface FloatIterable
Copyright © 2004–2017. All rights reserved.