Comparable
public class ComparableDouble extends java.lang.Object implements Comparable
Constructor | Description |
---|---|
ComparableDouble(double d) |
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(java.lang.Object o) |
Returns a number representing the ordering relationship that
the object has with the given object.
|
double |
doubleValue() |
|
boolean |
equals(java.lang.Object o) |
Returns true if this object is equal to the given object.
|
java.lang.String |
toString() |
public int compareTo(java.lang.Object o)
Comparable
compareTo
in interface Comparable
public boolean equals(java.lang.Object o)
Comparable
equals
in interface Comparable
equals
in class java.lang.Object
public double doubleValue()
public java.lang.String toString()
toString
in class java.lang.Object