FloatIterable
, LazyFloatIterable
, PrimitiveIterable
public class ReverseFloatIterable extends AbstractLazyFloatIterable
ReverseIterable
Constructor | Description |
---|---|
ReverseFloatIterable(FloatList newAdapted) |
Modifier and Type | Method | Description |
---|---|---|
static ReverseFloatIterable |
adapt(FloatList floatList) |
|
LazyFloatIterable |
asLazy() |
Returns a LazyFloatIterable adapter wrapping the source FloatIterable.
|
double |
average() |
|
boolean |
contains(float value) |
Returns true if the value is contained in the FloatIterable, and false if it is not.
|
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.
|
void |
each(FloatProcedure procedure) |
A synonym for forEach.
|
FloatIterator |
floatIterator() |
Returns a primitive iterator that can be used to iterate over the FloatIterable in an
imperative style.
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
float |
max() |
|
float |
maxIfEmpty(float defaultValue) |
|
double |
median() |
|
float |
min() |
|
float |
minIfEmpty(float defaultValue) |
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
int |
size() |
Returns the number of items in this iterable.
|
double |
sum() |
|
float[] |
toArray() |
Converts the FloatIterable to a primitive float array.
|
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() |
allSatisfy, anySatisfy, appendString, appendString, appendString, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, count, detectIfNone, forEach, injectInto, makeString, makeString, makeString, noneSatisfy, reject, select, toSortedList, toString
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, reject, select, summaryStatistics
public ReverseFloatIterable(FloatList newAdapted)
public static ReverseFloatIterable adapt(FloatList floatList)
public FloatIterator floatIterator()
FloatIterable
public void each(FloatProcedure procedure)
FloatIterable
public double sum()
sum
in interface FloatIterable
sum
in class AbstractLazyFloatIterable
public float max()
max
in interface FloatIterable
max
in class AbstractLazyFloatIterable
public float min()
min
in interface FloatIterable
min
in class AbstractLazyFloatIterable
public float minIfEmpty(float defaultValue)
minIfEmpty
in interface FloatIterable
minIfEmpty
in class AbstractLazyFloatIterable
public float maxIfEmpty(float defaultValue)
maxIfEmpty
in interface FloatIterable
maxIfEmpty
in class AbstractLazyFloatIterable
public double average()
average
in interface FloatIterable
average
in class AbstractLazyFloatIterable
public double median()
median
in interface FloatIterable
median
in class AbstractLazyFloatIterable
public float[] toSortedArray()
toSortedArray
in interface FloatIterable
toSortedArray
in class AbstractLazyFloatIterable
public float[] toArray()
FloatIterable
toArray
in interface FloatIterable
toArray
in class AbstractLazyFloatIterable
public boolean contains(float value)
FloatIterable
contains
in interface FloatIterable
contains
in class AbstractLazyFloatIterable
public boolean containsAll(float... source)
FloatIterable
containsAll
in interface FloatIterable
containsAll
in class AbstractLazyFloatIterable
public boolean containsAll(FloatIterable source)
FloatIterable
containsAll
in interface FloatIterable
containsAll
in class AbstractLazyFloatIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
size
in class AbstractLazyFloatIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractLazyFloatIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLazyFloatIterable
public MutableFloatList toList()
FloatIterable
toList
in interface FloatIterable
toList
in class AbstractLazyFloatIterable
public MutableFloatSet toSet()
FloatIterable
toSet
in interface FloatIterable
toSet
in class AbstractLazyFloatIterable
public MutableFloatBag toBag()
FloatIterable
toBag
in interface FloatIterable
toBag
in class AbstractLazyFloatIterable
public LazyFloatIterable asLazy()
FloatIterable
asLazy
in interface FloatIterable
asLazy
in class AbstractLazyFloatIterable
Copyright © 2004–2017. All rights reserved.