PrimitiveIterable
ByteFloatMap
, CharFloatMap
, DoubleFloatMap
, FloatBag
, FloatFloatMap
, FloatList
, FloatSet
, FloatStack
, FloatValuesMap
, ImmutableByteFloatMap
, ImmutableCharFloatMap
, ImmutableDoubleFloatMap
, ImmutableFloatBag
, ImmutableFloatCollection
, ImmutableFloatFloatMap
, ImmutableFloatList
, ImmutableFloatSet
, ImmutableFloatStack
, ImmutableIntFloatMap
, ImmutableLongFloatMap
, ImmutableObjectFloatMap<K>
, ImmutableShortFloatMap
, IntFloatMap
, LazyFloatIterable
, LongFloatMap
, MutableByteFloatMap
, MutableCharFloatMap
, MutableDoubleFloatMap
, MutableFloatBag
, MutableFloatCollection
, MutableFloatFloatMap
, MutableFloatList
, MutableFloatSet
, MutableFloatStack
, MutableFloatValuesMap
, MutableIntFloatMap
, MutableLongFloatMap
, MutableObjectFloatMap<K>
, MutableShortFloatMap
, ObjectFloatMap<K>
, OrderedFloatIterable
, ReversibleFloatIterable
, ShortFloatMap
AbstractFloatIterable
, AbstractFloatSet
, AbstractFloatStack
, AbstractImmutableFloatSet
, AbstractImmutableObjectFloatMap
, AbstractLazyFloatIterable
, AbstractMutableFloatKeySet
, AbstractMutableFloatValuesMap
, AbstractSynchronizedFloatCollection
, AbstractUnmodifiableFloatCollection
, ByteFloatHashMap
, CharFloatHashMap
, CollectBooleanToFloatIterable
, CollectByteToFloatIterable
, CollectCharToFloatIterable
, CollectDoubleToFloatIterable
, CollectFloatIterable
, CollectFloatToFloatIterable
, CollectIntToFloatIterable
, CollectLongToFloatIterable
, CollectShortToFloatIterable
, DoubleFloatHashMap
, FloatArrayList
, FloatArrayStack
, FloatFloatHashMap
, FloatHashBag
, FloatHashSet
, IntFloatHashMap
, LazyFloatIterableAdapter
, LongFloatHashMap
, ObjectFloatHashMap
, ObjectFloatHashMapWithHashingStrategy
, ReverseFloatIterable
, SelectFloatIterable
, ShortFloatHashMap
, SynchronizedByteFloatMap
, SynchronizedCharFloatMap
, SynchronizedDoubleFloatMap
, SynchronizedFloatBag
, SynchronizedFloatCollection
, SynchronizedFloatFloatMap
, SynchronizedFloatIterable
, SynchronizedFloatList
, SynchronizedFloatSet
, SynchronizedFloatStack
, SynchronizedIntFloatMap
, SynchronizedLongFloatMap
, SynchronizedObjectFloatMap
, SynchronizedShortFloatMap
, TapFloatIterable
, UnmodifiableByteFloatMap
, UnmodifiableCharFloatMap
, UnmodifiableDoubleFloatMap
, UnmodifiableFloatBag
, UnmodifiableFloatCollection
, UnmodifiableFloatFloatMap
, UnmodifiableFloatList
, UnmodifiableFloatSet
, UnmodifiableFloatStack
, UnmodifiableIntFloatMap
, UnmodifiableLongFloatMap
, UnmodifiableObjectFloatMap
, UnmodifiableShortFloatMap
public interface FloatIterable extends PrimitiveIterable
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.
|
LazyFloatIterable |
asLazy() |
Returns a LazyFloatIterable adapter wrapping the source FloatIterable.
|
double |
average() |
|
default double |
averageIfEmpty(double defaultValue) |
|
<V> RichIterable<V> |
collect(FloatToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default <V,R extends java.util.Collection<V>> |
collect(FloatToObjectFunction<? extends V> function,
R target) |
Same as
collect(FloatToObjectFunction) , only the results are added to the target Collection. |
default <R extends MutableBooleanCollection> |
collectBoolean(FloatToBooleanFunction function,
R target) |
Returns the target
MutableBooleanCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableByteCollection> |
collectByte(FloatToByteFunction function,
R target) |
Returns the target
MutableByteCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableCharCollection> |
collectChar(FloatToCharFunction function,
R target) |
Returns the target
MutableCharCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableDoubleCollection> |
collectDouble(FloatToDoubleFunction function,
R target) |
Returns the target
MutableDoubleCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableFloatCollection> |
collectFloat(FloatToFloatFunction function,
R target) |
Returns the target
MutableFloatCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableIntCollection> |
collectInt(FloatToIntFunction function,
R target) |
Returns the target
MutableIntCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableLongCollection> |
collectLong(FloatToLongFunction function,
R target) |
Returns the target
MutableLongCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableShortCollection> |
collectShort(FloatToShortFunction function,
R target) |
Returns the target
MutableShortCollection with the results of applying the specified function on each element
of the source collection. |
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.
|
int |
count(FloatPredicate predicate) |
Returns a count of the number of elements in the FloatIterable that return true for the
specified predicate.
|
float |
detectIfNone(FloatPredicate predicate,
float ifNone) |
|
void |
each(FloatProcedure procedure) |
A synonym for forEach.
|
default <V,R extends java.util.Collection<V>> |
flatCollect(FloatToObjectFunction<? extends java.lang.Iterable<V>> function,
R target) |
flatCollect is a special case of collect(FloatToObjectFunction) . |
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.
|
<T> T |
injectInto(T injectedValue,
ObjectFloatToObjectFunction<? super T,? extends T> function) |
|
float |
max() |
|
float |
maxIfEmpty(float defaultValue) |
|
double |
median() |
|
default double |
medianIfEmpty(double defaultValue) |
|
float |
min() |
|
float |
minIfEmpty(float defaultValue) |
|
boolean |
noneSatisfy(FloatPredicate predicate) |
Returns true if none of the elements in the FloatIterable return true for the
specified predicate, otherwise returns false.
|
FloatIterable |
reject(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return false for the specified predicate.
|
default <R extends MutableFloatCollection> |
reject(FloatPredicate predicate,
R target) |
Same as
reject(FloatPredicate) , only the results are added to the target MutableFloatCollection. |
FloatIterable |
select(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return true for the specified predicate.
|
default <R extends MutableFloatCollection> |
select(FloatPredicate predicate,
R target) |
Same as
select(FloatPredicate) , only the results are added to the target MutableFloatCollection. |
double |
sum() |
|
default java.util.DoubleSummaryStatistics |
summaryStatistics() |
|
default FloatIterable |
tap(FloatProcedure procedure) |
|
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() |
|
MutableFloatList |
toSortedList() |
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
FloatIterator floatIterator()
float[] toArray()
boolean contains(float value)
boolean containsAll(float... source)
boolean containsAll(FloatIterable source)
void forEach(FloatProcedure procedure)
void each(FloatProcedure procedure)
default FloatIterable tap(FloatProcedure procedure)
FloatIterable select(FloatPredicate predicate)
FloatIterable reject(FloatPredicate predicate)
default <R extends MutableFloatCollection> R select(FloatPredicate predicate, R target)
select(FloatPredicate)
, only the results are added to the target MutableFloatCollection.default <R extends MutableFloatCollection> R reject(FloatPredicate predicate, R target)
reject(FloatPredicate)
, only the results are added to the target MutableFloatCollection.<V> RichIterable<V> collect(FloatToObjectFunction<? extends V> function)
default <V,R extends java.util.Collection<V>> R collect(FloatToObjectFunction<? extends V> function, R target)
collect(FloatToObjectFunction)
, only the results are added to the target Collection.default <V,R extends java.util.Collection<V>> R flatCollect(FloatToObjectFunction<? extends java.lang.Iterable<V>> function, R target)
flatCollect
is a special case of collect(FloatToObjectFunction)
. With collect
, when the FloatToObjectFunction
returns
a collection, the result is a collection of collections. flatCollect
outputs a single "flattened" collection
instead. This method is commonly called flatMap.default <R extends MutableBooleanCollection> R collectBoolean(FloatToBooleanFunction function, R target)
MutableBooleanCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableByteCollection> R collectByte(FloatToByteFunction function, R target)
MutableByteCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableCharCollection> R collectChar(FloatToCharFunction function, R target)
MutableCharCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableShortCollection> R collectShort(FloatToShortFunction function, R target)
MutableShortCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableIntCollection> R collectInt(FloatToIntFunction function, R target)
MutableIntCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableFloatCollection> R collectFloat(FloatToFloatFunction function, R target)
MutableFloatCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableLongCollection> R collectLong(FloatToLongFunction function, R target)
MutableLongCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableDoubleCollection> R collectDouble(FloatToDoubleFunction function, R target)
MutableDoubleCollection
with the results of applying the specified function on each element
of the source collection.float detectIfNone(FloatPredicate predicate, float ifNone)
int count(FloatPredicate predicate)
boolean anySatisfy(FloatPredicate predicate)
boolean allSatisfy(FloatPredicate predicate)
boolean noneSatisfy(FloatPredicate predicate)
MutableFloatList toList()
MutableFloatSet toSet()
MutableFloatBag toBag()
LazyFloatIterable asLazy()
<T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T,? extends T> function)
double sum()
default java.util.DoubleSummaryStatistics summaryStatistics()
float max()
float maxIfEmpty(float defaultValue)
float min()
float minIfEmpty(float defaultValue)
double average()
default double averageIfEmpty(double defaultValue)
double median()
default double medianIfEmpty(double defaultValue)
float[] toSortedArray()
MutableFloatList toSortedList()
Copyright © 2004–2017. All rights reserved.