public class FloatUtils
extends java.lang.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 java.lang.Float |
toObject(float value)
Wraps an
float with an Object wrapper. |
static float |
toPrimitive(java.lang.Object value)
Unwraps the
Float to retrieve the primitive float. |
static float[] |
toPrimitiveArray(java.util.Collection<?> coll)
Unwraps a
Collection to retrieve the primitive float. |
public static java.lang.Float toObject(float value)
float with an Object wrapper.value - the primitive valuepublic static float toPrimitive(java.lang.Object value)
Float to retrieve the primitive float.value - the Object wrapper, must not be nulljava.lang.NullPointerException - if the value if nulljava.lang.ClassCastException - if the object is not Floatpublic static float[] toPrimitiveArray(java.util.Collection<?> coll)
Collection to retrieve the primitive float.coll - the Collection of Float, must not be nulljava.lang.NullPointerException - if the collection if nulljava.lang.ClassCastException - if any object is not FloatCopyright © 2005–2018 Joda.org. All rights reserved.