public class SelectFloatIterable extends AbstractLazyFloatIterable
Constructor and Description |
---|
SelectFloatIterable(FloatIterable delegate,
FloatPredicate predicate) |
Modifier and Type | Method and Description |
---|---|
boolean |
allSatisfy(FloatPredicate predicate) |
boolean |
anySatisfy(FloatPredicate predicate) |
double |
average() |
boolean |
containsAll(float... source) |
boolean |
containsAll(FloatIterable source) |
int |
count(FloatPredicate predicate) |
FloatIterator |
floatIterator() |
void |
forEach(FloatProcedure procedure) |
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 |
noneSatisfy(FloatPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
int |
size()
Returns the number of items in this iterable.
|
double |
sum() |
float[] |
toArray() |
MutableFloatBag |
toBag() |
MutableFloatList |
toList() |
MutableFloatSet |
toSet() |
float[] |
toSortedArray() |
MutableFloatList |
toSortedList() |
appendString, appendString, appendString, asLazy, collect, contains, detectIfNone, injectInto, makeString, makeString, makeString, reject, select, toString
public SelectFloatIterable(FloatIterable delegate, FloatPredicate predicate)
public FloatIterator floatIterator()
public void forEach(FloatProcedure procedure)
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 int count(FloatPredicate predicate)
count
in interface FloatIterable
count
in class AbstractLazyFloatIterable
public boolean anySatisfy(FloatPredicate predicate)
anySatisfy
in interface FloatIterable
anySatisfy
in class AbstractLazyFloatIterable
public boolean allSatisfy(FloatPredicate predicate)
allSatisfy
in interface FloatIterable
allSatisfy
in class AbstractLazyFloatIterable
public boolean noneSatisfy(FloatPredicate predicate)
noneSatisfy
in interface FloatIterable
noneSatisfy
in class AbstractLazyFloatIterable
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 MutableFloatList toSortedList()
toSortedList
in interface FloatIterable
toSortedList
in class AbstractLazyFloatIterable
public float[] toArray()
toArray
in interface FloatIterable
toArray
in class AbstractLazyFloatIterable
public boolean containsAll(float... source)
containsAll
in interface FloatIterable
containsAll
in class AbstractLazyFloatIterable
public boolean containsAll(FloatIterable source)
containsAll
in interface FloatIterable
containsAll
in class AbstractLazyFloatIterable
public MutableFloatList toList()
toList
in interface FloatIterable
toList
in class AbstractLazyFloatIterable
public MutableFloatSet toSet()
toSet
in interface FloatIterable
toSet
in class AbstractLazyFloatIterable
public MutableFloatBag toBag()
toBag
in interface FloatIterable
toBag
in class AbstractLazyFloatIterable
Copyright © 2004–2019. All rights reserved.