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