RoboJDETM v2.0

java.lang
Class Double

java.lang.Object
  extended by java.lang.Double

public class Double
extends Object

Class to represent a double as an immutable object.


Field Summary
static double MAX_VALUE
          Maximum non-inifinity value.
static double MIN_VALUE
          Smallest positive value.
static double NaN
          Not a number value.
static double NEGATIVE_INFINITY
          Negative infinity.
static double POSITIVE_INFINITY
          Positive infinity.
 
Constructor Summary
Double(double d)
          Constructs a Double object.
 
Method Summary
static boolean isInfinite(double d)
          Checks if the double value specified is infinite.
 boolean isNaN()
          Checks if this Double is Not-a-Number (NaN).
static boolean isNaN(double d)
          Checks if the double value specified is Not-a-Number (NaN).
 String toString()
          Returns a String representation of this Double.
static String toString(double d)
          Returns a String representation of the specified double.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait
 

Field Detail

MAX_VALUE

public static final double MAX_VALUE
Maximum non-inifinity value.


MIN_VALUE

public static final double MIN_VALUE
Smallest positive value.


NaN

public static final double NaN
Not a number value.


NEGATIVE_INFINITY

public static final double NEGATIVE_INFINITY
Negative infinity.


POSITIVE_INFINITY

public static final double POSITIVE_INFINITY
Positive infinity.

Constructor Detail

Double

public Double(double d)
Constructs a Double object.

Parameters:
d - double value
Method Detail

isInfinite

public static boolean isInfinite(double d)
Checks if the double value specified is infinite.

Parameters:
d - double to check
Returns:
true if infinite, otherwise false

isNaN

public boolean isNaN()
Checks if this Double is Not-a-Number (NaN).

Returns:
true if NaN, otherwise false

isNaN

public static boolean isNaN(double d)
Checks if the double value specified is Not-a-Number (NaN).

Parameters:
d - double to check
Returns:
true if NaN, otherwise false

toString

public String toString()
Returns a String representation of this Double.

Overrides:
toString in class Object
Returns:
String representation of the value

toString

public static String toString(double d)
Returns a String representation of the specified double.

Parameters:
d - double value
Returns:
String representation of the value

RoboJDETM v2.0

Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com