| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | IntegerRange(int toInclusive)
Constructs an IntegerRange with one endpoint specified by the given number and the other endpoint set to 0. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: The larger of the two numbers defining the range.Retrieves the maximum value in the range. |
| public int | Returns: The smaller of the two numbers defining the range.Retrieves the minimum value in the range. |
| fromInclusive | back to summary |
|---|---|
| private final int fromInclusive | |
| toInclusive | back to summary |
|---|---|
| private final int toInclusive | |
| IntegerRange | back to summary |
|---|---|
| public IntegerRange(int fromInclusive, int toInclusive) | |
| IntegerRange | back to summary |
|---|---|
| public IntegerRange(int toInclusive) Constructs an IntegerRange with one endpoint specified by the given number and the other endpoint set to 0. | |
| getMax | back to summary |
|---|---|
| public int getMax() Retrieves the maximum value in the range.
| |
| getMin | back to summary |
|---|---|
| public int getMin() Retrieves the minimum value in the range.
| |