@Immutable public class CollectFloatIterable<T> extends AbstractLazyFloatIterable
| Constructor and Description |
|---|
CollectFloatIterable(LazyIterable<T> adapted,
FloatFunction<? super T> function) |
| Modifier and Type | Method and 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, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, toSortedList, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcollect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, reject, select, summaryStatisticspublic CollectFloatIterable(LazyIterable<T> adapted, FloatFunction<? super T> function)
public FloatIterator floatIterator()
FloatIterablepublic void forEach(FloatProcedure procedure)
FloatIterableforEach in interface FloatIterableforEach in class AbstractLazyFloatIterablepublic void each(FloatProcedure procedure)
FloatIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyFloatIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyFloatIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyFloatIterablepublic int count(FloatPredicate predicate)
FloatIterablecount in interface FloatIterablecount in class AbstractLazyFloatIterablepublic boolean anySatisfy(FloatPredicate predicate)
FloatIterableanySatisfy in interface FloatIterableanySatisfy in class AbstractLazyFloatIterablepublic boolean allSatisfy(FloatPredicate predicate)
FloatIterableallSatisfy in interface FloatIterableallSatisfy in class AbstractLazyFloatIterablepublic boolean noneSatisfy(FloatPredicate predicate)
FloatIterablenoneSatisfy in interface FloatIterablenoneSatisfy in class AbstractLazyFloatIterablepublic float[] toArray()
FloatIterabletoArray in interface FloatIterabletoArray in class AbstractLazyFloatIterablepublic float[] toSortedArray()
toSortedArray in interface FloatIterabletoSortedArray in class AbstractLazyFloatIterablepublic MutableFloatList toList()
FloatIterabletoList in interface FloatIterabletoList in class AbstractLazyFloatIterablepublic MutableFloatSet toSet()
FloatIterabletoSet in interface FloatIterabletoSet in class AbstractLazyFloatIterablepublic MutableFloatBag toBag()
FloatIterabletoBag in interface FloatIterabletoBag in class AbstractLazyFloatIterablepublic boolean containsAll(float... source)
FloatIterablecontainsAll in interface FloatIterablecontainsAll in class AbstractLazyFloatIterablepublic boolean containsAll(FloatIterable source)
FloatIterablecontainsAll in interface FloatIterablecontainsAll in class AbstractLazyFloatIterableCopyright © 2004–2017. All rights reserved.