Package pal.util
Class ComparableDouble
- java.lang.Object
-
- pal.util.ComparableDouble
-
- All Implemented Interfaces:
Comparable
public class ComparableDouble extends java.lang.Object implements 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 Constructor Description ComparableDouble(double d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.lang.Object o)Returns a number representing the ordering relationship that the object has with the given object.doubledoubleValue()booleanequals(java.lang.Object o)Returns true if this object is equal to the given object.java.lang.StringtoString()
-
-
-
Method Detail
-
compareTo
public int compareTo(java.lang.Object o)
Description copied from interface:ComparableReturns 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:
compareToin interfaceComparable
-
equals
public boolean equals(java.lang.Object o)
Description copied from interface:ComparableReturns true if this object is equal to the given object.- Specified by:
equalsin interfaceComparable- Overrides:
equalsin classjava.lang.Object
-
doubleValue
public double doubleValue()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-