public class ComparableNumber extends Number implements Comparable<ComparableNumber>
| Constructor and Description |
|---|
ComparableNumber(Number number) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ComparableNumber other) |
double |
doubleValue() |
boolean |
equals(Object other) |
float |
floatValue() |
Number |
getNumber() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
String |
toString() |
byteValue, shortValuepublic ComparableNumber(Number number)
public int compareTo(ComparableNumber other)
compareTo in interface Comparable<ComparableNumber>public Number getNumber()
public double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class NumberCopyright © 2007–2019 Andreas W. Bartels. All rights reserved.