|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.util.Range
public class Range
A range is a domain of legal values. This domain can both be restricted and unrestricted. In the former case, a range has a minimum and a maximum value and only values between them are valid. In the latter case, any value is valid ('*').
| Field Summary | |
|---|---|
protected int |
_maximum
The maximum of the range |
protected int |
_minimum
The minimum of the range - if minimum negative unrestricted |
| Constructor Summary | |
|---|---|
Range(int min,
int max)
Creates a restricted range. |
|
| Method Summary | |
|---|---|
boolean |
includes(int value)
Checks if the range includes a certain value. |
String |
toString()
Returns a string representation of the range. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int _minimum
protected int _maximum
| Constructor Detail |
|---|
public Range(int min,
int max)
min - the minimum of the range.max - the maximum of the range.| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean includes(int value)
value - the value to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||