public class DoubleUtils
extends java.lang.Object
double.| Modifier and Type | Field and Description |
|---|---|
static double[] |
EMPTY_DOUBLE_ARRAY
Immutable empty array.
|
| Constructor and Description |
|---|
DoubleUtils()
Constructor that should not usually be used.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Double |
toObject(double value)
Wraps an
double with an Object wrapper. |
static double |
toPrimitive(java.lang.Object value)
Unwraps the
Double to retrieve the primitive double. |
static double[] |
toPrimitiveArray(java.util.Collection<?> coll)
Unwraps a
Collection to retrieve the primitive double. |
public static final double[] EMPTY_DOUBLE_ARRAY
public static java.lang.Double toObject(double value)
double with an Object wrapper.value - the primitive valuepublic static double toPrimitive(java.lang.Object value)
Double to retrieve the primitive double.value - the Object wrapper, must not be nulljava.lang.NullPointerException - if the value if nulljava.lang.ClassCastException - if the object is not Doublepublic static double[] toPrimitiveArray(java.util.Collection<?> coll)
Collection to retrieve the primitive double.coll - the Collection of Double, must not be nulljava.lang.NullPointerException - if the collection if nulljava.lang.ClassCastException - if any object is not DoubleCopyright © 2005–2018 Joda.org. All rights reserved.