public class Weight
extends java.lang.Object
NormalOrder and ReverseOrder).| Modifier and Type | Class and Description |
|---|---|
static class |
Weight.Type |
| Modifier and Type | Field and Description |
|---|---|
static Weight |
NOT_SET |
static Weight |
UNLIMITED |
static Weight |
ZERO |
| Constructor and Description |
|---|
Weight(int number) |
Weight(Weight.Type type,
int number) |
| Modifier and Type | Method and Description |
|---|---|
Weight |
add(Weight other)
Returns this + other.
|
boolean |
equals(java.lang.Object obj) |
int |
getNumber() |
Weight.Type |
getType() |
int |
hashCode() |
java.lang.String |
toString() |
public static final Weight UNLIMITED
public static final Weight NOT_SET
public static final Weight ZERO
public Weight(int number)
public Weight(Weight.Type type, int number)
public Weight add(Weight other)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int getNumber()
public Weight.Type getType()
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object