|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joda.primitives.DoubleUtils
public class DoubleUtils
Provides utility methods and constants for double
.
Field Summary | |
---|---|
static double[] |
EMPTY_DOUBLE_ARRAY
Immutable empty array. |
Constructor Summary | |
---|---|
DoubleUtils()
Constructor that should not usually be used. |
Method Summary | |
---|---|
static Double |
toObject(double value)
Wraps an double with an Object wrapper. |
static double |
toPrimitive(Object value)
Unwraps the Double to retrieve the primitive double . |
static double[] |
toPrimitiveArray(Collection<?> coll)
Unwraps a Collection to retrieve the primitive double . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double[] EMPTY_DOUBLE_ARRAY
Constructor Detail |
---|
public DoubleUtils()
Method Detail |
---|
public static Double toObject(double value)
double
with an Object wrapper.
value
- the primitive value
public static double toPrimitive(Object value)
Double
to retrieve the primitive double
.
value
- the Object wrapper, must not be null
NullPointerException
- if the value if null
ClassCastException
- if the object is not Double
public static double[] toPrimitiveArray(Collection<?> coll)
Collection
to retrieve the primitive double
.
coll
- the Collection of Double, must not be null
NullPointerException
- if the collection if null
ClassCastException
- if any object is not Double
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |