@Immutable public final class PrefixName extends Prefix
| Constructor and Description |
|---|
PrefixName(String name,
double value)
Constructs from a name and a numeric value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object obj)
Compares this PrefixName with another PrefixName.
|
int |
compareTo(String string)
Compares this PrefixName with a string.
|
public PrefixName(String name, double value)
name - The name for the prefix.value - The numeric value for the prefix.public final int compareTo(Object obj)
compareTo in interface Comparable<Object>compareTo in class Prefixobj - The other PrefixName.
obj, respectively.public final int compareTo(String string)