public final class Range extends Object implements Serializable
| Constructor and Description |
|---|
Range(int min,
int max)
Creates a new Range object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getMax()
Getter for the maximal value of this
Range. |
int |
getMin()
Getter for the minimal value of this
Range. |
int |
hashCode() |
String |
toString() |
public Range(int min,
int max)
min must be less than max or otherwise an
IllegalArgumentException is thrown.min - the minimal value of the Rangemax - the maximal value of the RangeIllegalArgumentException - if min is not less than maxCopyright © 2012–2026 cismet GmbH. All rights reserved.