org.joda.primitives
Class FloatUtils

java.lang.Object
  extended by org.joda.primitives.FloatUtils

public class FloatUtils
extends Object

Provides utility methods and constants for float.

Since:
1.0
Version:
CODE GENERATED
Author:
Stephen Colebourne, Jason Tiscione

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

EMPTY_FLOAT_ARRAY

public static final float[] EMPTY_FLOAT_ARRAY
Immutable empty array.

Constructor Detail

FloatUtils

public FloatUtils()
Constructor that should not usually be used.

Method Detail

toObject

public static Float toObject(float value)
Wraps an float with an Object wrapper.

Parameters:
value - the primitive value
Returns:
the Object wrapper

toPrimitive

public static float toPrimitive(Object value)
Unwraps the Float to retrieve the primitive float.

Parameters:
value - the Object wrapper, must not be null
Returns:
the primitive value
Throws:
NullPointerException - if the value if null
ClassCastException - if the object is not Float

toPrimitiveArray

public static float[] toPrimitiveArray(Collection<?> coll)
Unwraps a Collection to retrieve the primitive float.

Parameters:
coll - the Collection of Float, must not be null
Returns:
the primitive value array
Throws:
NullPointerException - if the collection if null
ClassCastException - if any object is not Float


Copyright © 2005-2010 Joda.org. All Rights Reserved.