JML

java.lang
Class Float

java.lang.Object
  extended byjava.lang.Number
      extended byjava.lang.Float
All Implemented Interfaces:
Comparable, Serializable

public final class Float
extends Number
implements Comparable


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

Field Detail

TYPE

public static final Class TYPE

POSITIVE_INFINITY

public static final float POSITIVE_INFINITY

MAX_EXPONENT

public static final int MAX_EXPONENT

MIN_VALUE

public static final float MIN_VALUE

NEGATIVE_INFINITY

public static final float NEGATIVE_INFINITY

MIN_EXPONENT

public static final int MIN_EXPONENT

serialVersionUID

private static final long serialVersionUID

MIN_NORMAL

public static final float MIN_NORMAL

SIZE

public static final int SIZE

NaN

public static final float NaN

value

private final float value

MAX_VALUE

public static final float MAX_VALUE
Constructor Detail

Float

public Float(float)

Float

public Float(double)

Float

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

toString

public static String toString(float)

toHexString

public static String toHexString(float)

valueOf

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

valueOf

public static Float valueOf(float)

parseFloat

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

isNaN

public static boolean isNaN(float)

isInfinite

public static boolean isInfinite(float)

isNaN

public boolean isNaN()

isInfinite

public boolean isInfinite()

toString

public String toString()
Overrides:
toString in class Object

byteValue

public byte byteValue()
Overrides:
byteValue in class Number

shortValue

public short shortValue()
Overrides:
shortValue in class Number

intValue

public int intValue()

longValue

public long longValue()

floatValue

public float floatValue()

doubleValue

public double doubleValue()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

floatToIntBits

public static int floatToIntBits(float)

floatToRawIntBits

public static int floatToRawIntBits(float)

intBitsToFloat

public static float intBitsToFloat(int)

compareTo

public int compareTo(Float)

compare

public static int compare(float,
                          float)

compareTo

public volatile int compareTo(Object)
Specified by:
compareTo in interface Comparable

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.