public class FloatUtils extends Object
float.| Modifier and Type | Field and Description |
|---|---|
static float[] |
EMPTY_FLOAT_ARRAY
Immutable empty array.
|
| Constructor and Description |
|---|
FloatUtils()
Constructor that should not usually be used.
|
| Modifier and Type | Method and Description |
|---|---|
static Float |
toObject(float value)
Wraps an
float with an Object wrapper. |
static float |
toPrimitive(Object value)
Unwraps the
Float to retrieve the primitive float. |
static float[] |
toPrimitiveArray(Collection<?> coll)
Unwraps a
Collection to retrieve the primitive float. |
public static final float[] EMPTY_FLOAT_ARRAY
public FloatUtils()
public static Float toObject(float value)
float with an Object wrapper.value - the primitive valuepublic static float toPrimitive(Object value)
Float to retrieve the primitive float.value - the Object wrapper, must not be nullNullPointerException - if the value if nullClassCastException - if the object is not Floatpublic static float[] toPrimitiveArray(Collection<?> coll)
Collection to retrieve the primitive float.coll - the Collection of Float, must not be nullNullPointerException - if the collection if nullClassCastException - if any object is not FloatCopyright © 2005-2012 Joda.org. All Rights Reserved.