FloatIterable
, LazyFloatIterable
, PrimitiveIterable
public class CollectFloatIterable<T> extends AbstractLazyFloatIterable
Constructor | Description |
---|---|
CollectFloatIterable(LazyIterable<T> adapted,
FloatFunction<? super T> function) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
allSatisfy(FloatPredicate predicate) |
Returns true if all of the elements in the FloatIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(FloatPredicate predicate) |
Returns true if any of the elements in the FloatIterable return true for the
specified predicate, otherwise returns false.
|
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.
|
int |
count(FloatPredicate predicate) |
Returns a count of the number of elements in the FloatIterable that return true for the
specified predicate.
|
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.
|
void |
forEach(FloatProcedure procedure) |
Applies the FloatProcedure to each element in the FloatIterable.
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
boolean |
noneSatisfy(FloatPredicate predicate) |
Returns true if none of the elements in the FloatIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
int |
size() |
Returns the number of items in this iterable.
|
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() |
appendString, appendString, appendString, asLazy, average, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, flatCollect, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, tap, toSortedList, toString
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics
public CollectFloatIterable(LazyIterable<T> adapted, FloatFunction<? super T> function)
public FloatIterator floatIterator()
FloatIterable
public void forEach(FloatProcedure procedure)
FloatIterable
forEach
in interface FloatIterable
forEach
in class AbstractLazyFloatIterable
public void each(FloatProcedure procedure)
FloatIterable
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)
FloatIterable
count
in interface FloatIterable
count
in class AbstractLazyFloatIterable
public boolean anySatisfy(FloatPredicate predicate)
FloatIterable
anySatisfy
in interface FloatIterable
anySatisfy
in class AbstractLazyFloatIterable
public boolean allSatisfy(FloatPredicate predicate)
FloatIterable
allSatisfy
in interface FloatIterable
allSatisfy
in class AbstractLazyFloatIterable
public boolean noneSatisfy(FloatPredicate predicate)
FloatIterable
noneSatisfy
in interface FloatIterable
noneSatisfy
in class AbstractLazyFloatIterable
public float[] toArray()
FloatIterable
toArray
in interface FloatIterable
toArray
in class AbstractLazyFloatIterable
public float[] toSortedArray()
toSortedArray
in interface FloatIterable
toSortedArray
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 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
Copyright © 2004–2019. All rights reserved.