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