| Modifier and Type | Method and Description |
|---|---|
| public boolean | allSatisfy(DoublePredicate predicate)
Returns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false. |
| public boolean | anySatisfy(DoublePredicate predicate)
Returns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false. |
| public LazyDoubleIterable | |
| public double | |
| public default double | |
| public default RichIterable | Returns: ARichIterable containing DoubleIterables of size size, except the last will be
truncated if the elements don't divide evenly.the number of elements per chunk size)Partitions elements in fixed size chunks. |
| public <V> RichIterable | collect(DoubleToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source collection. |
| public default <V, R extends Collection | collect(DoubleToObjectFunction<? extends V> function, R target)
Same as |
| public default <R extends MutableBooleanCollection> R | collectBoolean(DoubleToBooleanFunction function, R target)
Returns the target |
| public default <R extends MutableByteCollection> R | collectByte(DoubleToByteFunction function, R target)
Returns the target |
| public default <R extends MutableCharCollection> R | collectChar(DoubleToCharFunction function, R target)
Returns the target |
| public default <R extends MutableDoubleCollection> R | collectDouble(DoubleToDoubleFunction function, R target)
Returns the target |
| public default <R extends MutableFloatCollection> R | collectFloat(DoubleToFloatFunction function, R target)
Returns the target |
| public default <R extends MutableIntCollection> R | collectInt(DoubleToIntFunction function, R target)
Returns the target |
| public default <R extends MutableLongCollection> R | collectLong(DoubleToLongFunction function, R target)
Returns the target |
| public default <R extends MutableShortCollection> R | collectShort(DoubleToShortFunction function, R target)
Returns the target |
| public boolean | contains(double value)
Returns true if the value is contained in the DoubleIterable, and false if it is not. |
| public default boolean | containsAll(double... source)
Returns true if all of the values specified in the source array are contained in the DoubleIterable, and false if they are not. |
| public default boolean | containsAll(DoubleIterable source)
Returns true if all of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not. |
| public default boolean | containsAny(double... source)
Returns true if any of the values specified in the source array are contained in the DoubleIterable, and false if they are not. |
| public default boolean | containsAny(DoubleIterable source)
Returns true if any of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not. |
| public default boolean | containsNone(double... source)
Returns true if none of the values specified in the source array are contained in the DoubleIterable, and false if they are. |
| public default boolean | containsNone(DoubleIterable source)
Returns true if none of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are. |
| public int | count(DoublePredicate predicate)
Returns a count of the number of elements in the DoubleIterable that return true for the specified predicate. |
| public double | |
| public DoubleIterator | doubleIterator()
Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style. |
| public void | |
| public default <V, R extends Collection | flatCollect(DoubleToObjectFunction<? extends Iterable<V>> function, R target)
|
| public default void | forEach(DoubleProcedure procedure)
Applies the DoubleProcedure to each element in the DoubleIterable. |
| public <T> T | |
| public default boolean | injectIntoBoolean(boolean injectedValue, BooleanDoubleToBooleanFunction function)
Returns the final boolean result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default byte | injectIntoByte(byte injectedValue, ByteDoubleToByteFunction function)
Returns the final byte result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default char | injectIntoChar(char injectedValue, CharDoubleToCharFunction function)
Returns the final char result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default double | injectIntoDouble(double injectedValue, DoubleDoubleToDoubleFunction function)
Returns the final double result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default float | injectIntoFloat(float injectedValue, FloatDoubleToFloatFunction function)
Returns the final float result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default int | injectIntoInt(int injectedValue, IntDoubleToIntFunction function)
Returns the final int result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default long | injectIntoLong(long injectedValue, LongDoubleToLongFunction function)
Returns the final long result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default short | injectIntoShort(short injectedValue, ShortDoubleToShortFunction function)
Returns the final short result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public double | |
| public double | |
| public double | |
| public default double | |
| public double | |
| public double | |
| public default boolean | noneSatisfy(DoublePredicate predicate)
Returns true if none of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false. |
| public default double | |
| public default double | |
| public DoubleIterable | reject(DoublePredicate predicate)
Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate. |
| public default <R extends MutableDoubleCollection> R | reject(DoublePredicate predicate, R target)
Same as |
| public DoubleIterable | select(DoublePredicate predicate)
Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate. |
| public default <R extends MutableDoubleCollection> R | select(DoublePredicate predicate, R target)
Same as |
| public double | |
| public default DoubleSummaryStatistics | |
| public default DoubleIterable | |
| public double[] | |
| public default double[] | |
| public MutableDoubleBag | |
| public MutableDoubleList | |
| public MutableDoubleSet | |
| public double[] | |
| public MutableDoubleList | |
| public default MutableDoubleList | toSortedList(DoubleComparator comparator)
Converts the collection to a MutableDoubleList implementation sorted using the provided comparator. |
| public default <T> MutableDoubleList | toSortedListBy(DoubleToObjectFunction<T> function)
Converts the collection to a MutableDoubleListImplementation sorted based on the natural order of the key returned
by |
| public default <T> MutableDoubleList | toSortedListBy(DoubleToObjectFunction<T> function, Comparator<? super T> comparator)
Converts the collection to a MutableDoubleList implementation, which is sorted based on the key returned by
|
| allSatisfy | back to summary |
|---|---|
| public boolean allSatisfy(DoublePredicate predicate) Returns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false. | |
| anySatisfy | back to summary |
|---|---|
| public boolean anySatisfy(DoublePredicate predicate) Returns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false. | |
| asLazy | back to summary |
|---|---|
| public LazyDoubleIterable asLazy() Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable. | |
| average | back to summary |
|---|---|
| public double average() | |
| averageIfEmpty | back to summary |
|---|---|
public default double averageIfEmpty(double defaultValue)
| |
| chunk | back to summary |
|---|---|
| public default RichIterable Partitions elements in fixed size chunks.
| |
| collect | back to summary |
|---|---|
| public <V> RichIterable Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map. | |
| collect | back to summary |
|---|---|
| public default <V, R extends Collection Same as
| |
| collectBoolean | back to summary |
|---|---|
| public default <R extends MutableBooleanCollection> R collectBoolean(DoubleToBooleanFunction function, R target) Returns the target
| |
| collectByte | back to summary |
|---|---|
| public default <R extends MutableByteCollection> R collectByte(DoubleToByteFunction function, R target) Returns the target
| |
| collectChar | back to summary |
|---|---|
| public default <R extends MutableCharCollection> R collectChar(DoubleToCharFunction function, R target) Returns the target
| |
| collectDouble | back to summary |
|---|---|
| public default <R extends MutableDoubleCollection> R collectDouble(DoubleToDoubleFunction function, R target) Returns the target
| |
| collectFloat | back to summary |
|---|---|
| public default <R extends MutableFloatCollection> R collectFloat(DoubleToFloatFunction function, R target) Returns the target
| |
| collectInt | back to summary |
|---|---|
| public default <R extends MutableIntCollection> R collectInt(DoubleToIntFunction function, R target) Returns the target
| |
| collectLong | back to summary |
|---|---|
| public default <R extends MutableLongCollection> R collectLong(DoubleToLongFunction function, R target) Returns the target
| |
| collectShort | back to summary |
|---|---|
| public default <R extends MutableShortCollection> R collectShort(DoubleToShortFunction function, R target) Returns the target
| |
| contains | back to summary |
|---|---|
| public boolean contains(double value) Returns true if the value is contained in the DoubleIterable, and false if it is not. | |
| containsAll | back to summary |
|---|---|
| public default boolean containsAll(double... source) Returns true if all of the values specified in the source array are contained in the DoubleIterable, and false if they are not. | |
| containsAll | back to summary |
|---|---|
| public default boolean containsAll(DoubleIterable source) Returns true if all of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not. | |
| containsAny | back to summary |
|---|---|
| public default boolean containsAny(double... source) Returns true if any of the values specified in the source array are contained in the DoubleIterable, and false if they are not.
| |
| containsAny | back to summary |
|---|---|
| public default boolean containsAny(DoubleIterable source) Returns true if any of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are not.
| |
| containsNone | back to summary |
|---|---|
| public default boolean containsNone(double... source) Returns true if none of the values specified in the source array are contained in the DoubleIterable, and false if they are.
| |
| containsNone | back to summary |
|---|---|
| public default boolean containsNone(DoubleIterable source) Returns true if none of the values specified in the source DoubleIterable are contained in the DoubleIterable, and false if they are.
| |
| count | back to summary |
|---|---|
| public int count(DoublePredicate predicate) Returns a count of the number of elements in the DoubleIterable that return true for the specified predicate. | |
| detectIfNone | back to summary |
|---|---|
| public double detectIfNone(DoublePredicate predicate, double ifNone) | |
| doubleIterator | back to summary |
|---|---|
| public DoubleIterator doubleIterator() Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style. | |
| each | back to summary |
|---|---|
| public void each(DoubleProcedure procedure) A synonym for forEach.
| |
| flatCollect | back to summary |
|---|---|
| public default <V, R extends Collection
| |
| forEach | back to summary |
|---|---|
| public default void forEach(DoubleProcedure procedure) Applies the DoubleProcedure to each element in the DoubleIterable. | |
| injectInto | back to summary |
|---|---|
| public <T> T injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T, ? extends T> function) | |
| injectIntoBoolean | back to summary |
|---|---|
| public default boolean injectIntoBoolean(boolean injectedValue, BooleanDoubleToBooleanFunction function) Returns the final boolean result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoByte | back to summary |
|---|---|
| public default byte injectIntoByte(byte injectedValue, ByteDoubleToByteFunction function) Returns the final byte result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoChar | back to summary |
|---|---|
| public default char injectIntoChar(char injectedValue, CharDoubleToCharFunction function) Returns the final char result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoDouble | back to summary |
|---|---|
| public default double injectIntoDouble(double injectedValue, DoubleDoubleToDoubleFunction function) Returns the final double result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoFloat | back to summary |
|---|---|
| public default float injectIntoFloat(float injectedValue, FloatDoubleToFloatFunction function) Returns the final float result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoInt | back to summary |
|---|---|
| public default int injectIntoInt(int injectedValue, IntDoubleToIntFunction function) Returns the final int result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoLong | back to summary |
|---|---|
| public default long injectIntoLong(long injectedValue, LongDoubleToLongFunction function) Returns the final long result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoShort | back to summary |
|---|---|
| public default short injectIntoShort(short injectedValue, ShortDoubleToShortFunction function) Returns the final short result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| max | back to summary |
|---|---|
| public double max() | |
| maxIfEmpty | back to summary |
|---|---|
| public double maxIfEmpty(double defaultValue) | |
| median | back to summary |
|---|---|
| public double median() | |
| medianIfEmpty | back to summary |
|---|---|
public default double medianIfEmpty(double defaultValue)
| |
| min | back to summary |
|---|---|
| public double min() | |
| minIfEmpty | back to summary |
|---|---|
| public double minIfEmpty(double defaultValue) | |
| noneSatisfy | back to summary |
|---|---|
| public default boolean noneSatisfy(DoublePredicate predicate) Returns true if none of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false. | |
| reduce | back to summary |
|---|---|
public default double reduce(DoubleDoubleToDoubleFunction accumulator)
| |
| reduceIfEmpty | back to summary |
|---|---|
public default double reduceIfEmpty(DoubleDoubleToDoubleFunction accumulator, double defaultValue)
| |
| reject | back to summary |
|---|---|
| public DoubleIterable reject(DoublePredicate predicate) Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate. | |
| reject | back to summary |
|---|---|
| public default <R extends MutableDoubleCollection> R reject(DoublePredicate predicate, R target) Same as
| |
| select | back to summary |
|---|---|
| public DoubleIterable select(DoublePredicate predicate) Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate. | |
| select | back to summary |
|---|---|
| public default <R extends MutableDoubleCollection> R select(DoublePredicate predicate, R target) Same as
| |
| sum | back to summary |
|---|---|
| public double sum() | |
| summaryStatistics | back to summary |
|---|---|
public default DoubleSummaryStatistics summaryStatistics()
| |
| tap | back to summary |
|---|---|
public default DoubleIterable tap(DoubleProcedure procedure)
| |
| toArray | back to summary |
|---|---|
| public double[] toArray() Converts the DoubleIterable to a primitive double array. | |
| toArray | back to summary |
|---|---|
| public default double[] toArray(double[] target) Converts the DoubleIterable to a primitive double array. If the collection fits into the provided array it is used to store its elements and is returned from the method, otherwise a new array of the appropriate size is allocated and returned. If the iterable is empty, the target array is returned unchanged. | |
| toBag | back to summary |
|---|---|
| public MutableDoubleBag toBag() Converts the DoubleIterable to a new MutableDoubleBag. | |
| toList | back to summary |
|---|---|
| public MutableDoubleList toList() Converts the DoubleIterable to a new MutableDoubleList. | |
| toSet | back to summary |
|---|---|
| public MutableDoubleSet toSet() Converts the DoubleIterable to a new MutableDoubleSet. | |
| toSortedArray | back to summary |
|---|---|
| public double[] toSortedArray() | |
| toSortedList | back to summary |
|---|---|
| public MutableDoubleList toSortedList() | |
| toSortedList | back to summary |
|---|---|
| public default MutableDoubleList toSortedList(DoubleComparator comparator) Converts the collection to a MutableDoubleList implementation sorted using the provided comparator. | |
| toSortedListBy | back to summary |
|---|---|
| public default <T> MutableDoubleList toSortedListBy(DoubleToObjectFunction<T> function) Converts the collection to a MutableDoubleListImplementation sorted based on the natural order of the key returned
by | |
| toSortedListBy | back to summary |
|---|---|
| public default <T> MutableDoubleList toSortedListBy(DoubleToObjectFunction<T> function, Comparator<? super T> comparator) Converts the collection to a MutableDoubleList implementation, which is sorted based on the key returned by
| |