public class NumberCollections extends Object
Number instances| Modifier and Type | Method and Description |
|---|---|
static double |
max(Collection<? extends Number> numbers)
Computes the maximum of the double values of the numbers in the
given collection.
|
static double |
min(Collection<? extends Number> numbers)
Computes the minimum of the double values of the numbers in the
given collection.
|
static double[] |
toDoubleArray(Collection<? extends Number> numbers)
Returns an array containing the double values of the given numbers
|
public static double[] toDoubleArray(Collection<? extends Number> numbers)
numbers - The numberspublic static double min(Collection<? extends Number> numbers)
POSITIVE_INFINITY when the collection is empty.numbers - The numberspublic static double max(Collection<? extends Number> numbers)
NEGATIVE_INFINITY when the collection is empty.numbers - The numbersCopyright © 2020. All rights reserved.