@Immutable public final class PrefixName extends Prefix
Constructor and Description |
---|
PrefixName(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 PrefixName with another PrefixName.
|
int |
compareTo(java.lang.String string)
Compares this PrefixName with a string.
|
public PrefixName(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 Prefix
obj
- The other PrefixName.
obj
, respectively.public final int compareTo(java.lang.String string)