Package pal.util
Class ComparableDouble
java.lang.Object
pal.util.ComparableDouble
- All Implemented Interfaces:
Comparable
This class is unfortunate but necessary to conform to JDK 1.1
- Version:
- $Id: ComparableDouble.java,v 1.3 2001/07/13 14:39:13 korbinian Exp $
- Author:
- Alexei Drummond
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ComparableDouble
public ComparableDouble(double d)
-
-
Method Details
-
compareTo
Description copied from interface:Comparable
Returns a number representing the ordering relationship that the object has with the given object. A negative number indicates that the object is "smaller" than the parameter, a positive number means it is "larger" and zero indicates that the objects are equal.- Specified by:
compareTo
in interfaceComparable
-
equals
Description copied from interface:Comparable
Returns true if this object is equal to the given object.- Specified by:
equals
in interfaceComparable
- Overrides:
equals
in classObject
-
doubleValue
public double doubleValue() -
toString
-