| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final int | compareTo(Constant
the object to be compared. other)Implements java. |
| protected abstract int | Returns: -1, 0, or 1, as usual
for a comparisonnon-null; the instance to compare toCompare the values of this and another instance, which are guaranteed to be of the same class. |
| public abstract boolean | Returns: true iff this instance is category-2Returns |
| public abstract String | Returns: non-null; the nameReturns the human name for the particular type of constant this instance is. |
| Constant | back to summary |
|---|---|
| public Constant() | |
| compareTo | back to summary |
|---|---|
| public final int compareTo(Constant other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| compareTo0 | back to summary |
|---|---|
| protected abstract int compareTo0(Constant other) Compare the values of this and another instance, which are guaranteed to be of the same class. Subclasses must implement this.
| |
| isCategory2 | back to summary |
|---|---|
| public abstract boolean isCategory2() Returns
| |
| typeName | back to summary |
|---|---|
| public abstract String typeName() Returns the human name for the particular type of constant this instance is.
| |