| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(Weight
the object to be compared. other)Implements java. Compares this object with the specified object for order. |
| pack-priv Weight | |
| public int |
| value | back to summary |
|---|---|
| private int value | |
| Weight | back to summary |
|---|---|
| pack-priv Weight(int value) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Weight 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 | |
| increment | back to summary |
|---|---|
| pack-priv Weight increment() | |
| value | back to summary |
|---|---|
| public int value() | |