java.lang
Class Float

java.lang.Object
  extended by java.lang.Number
      extended by java.lang.Float
All Implemented Interfaces:
Serializable


public final class Float
extends Number

See Also:
Serialized Form

Field Summary
static float MAX_VALUE
           
static float MIN_VALUE
           
static float NaN
           
static float NEGATIVE_INFINITY
           
static float POSITIVE_INFINITY
           
static Class TYPE
           
 
Constructor Summary
Float(double d)
           
Float(float f)
           
Float(String s)
           
 
Method Summary
 byte byteValue()
           
 double doubleValue()
           
 boolean equals(Object o)
           
static int floatToIntBits(float value)
           
static int floatToRawIntBits(float value)
           
 float floatValue()
           
 int hashCode()
           
static float intBitsToFloat(int value)
           
 int intValue()
           
 boolean isInfinite()
           
static boolean isInfinite(float d)
           
 boolean isNaN()
           
static boolean isNaN(float d)
           
 long longValue()
           
static float parseFloat(String s)
           
 short shortValue()
           
 String toString()
           
static String toString(float f)
           
static Float valueOf(String s)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_VALUE

public static final float MAX_VALUE
See Also:
Constant Field Values

MIN_VALUE

public static final float MIN_VALUE
See Also:
Constant Field Values

NaN

public static final float NaN
See Also:
Constant Field Values

POSITIVE_INFINITY

public static final float POSITIVE_INFINITY
See Also:
Constant Field Values

NEGATIVE_INFINITY

public static final float NEGATIVE_INFINITY
See Also:
Constant Field Values

TYPE

public static final Class TYPE
Constructor Detail

Float

public Float(float f)

Float

public Float(double d)

Float

public Float(String s)
      throws NumberFormatException
Throws:
NumberFormatException
Method Detail

byteValue

public byte byteValue()
Specified by:
byteValue in class Number

floatValue

public float floatValue()
Specified by:
floatValue in class Number

doubleValue

public double doubleValue()
Specified by:
doubleValue in class Number

intValue

public int intValue()
Specified by:
intValue in class Number

longValue

public long longValue()
Specified by:
longValue in class Number

shortValue

public short shortValue()
Specified by:
shortValue in class Number

isNaN

public boolean isNaN()

isInfinite

public boolean isInfinite()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

floatToIntBits

public static int floatToIntBits(float value)

floatToRawIntBits

public static int floatToRawIntBits(float value)

intBitsToFloat

public static float intBitsToFloat(int value)

valueOf

public static Float valueOf(String s)
                     throws NumberFormatException
Throws:
NumberFormatException

toString

public static String toString(float f)

parseFloat

public static float parseFloat(String s)
                        throws NumberFormatException
Throws:
NumberFormatException

isInfinite

public static boolean isInfinite(float d)

isNaN

public static boolean isNaN(float d)