public class Range
extends java.lang.Object
| Constructor and Description |
|---|
Range(int min,
int max)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMax()
Returns the maximum allowed value.
|
int |
getMin()
Returns the minimum allowed value.
|
boolean |
isWithinRange(int value)
Returns whether a given attribute value is within the valid attribute
values range.
|
public Range(int min,
int max)
min - the minimum allowed valuemax - the maximum allowed valuepublic boolean isWithinRange(int value)
value - the value to checkpublic int getMin()
public int getMax()