Package digilib.util
Class NumRange
java.lang.Object
digilib.util.NumRange
Class that parses String with intervals into Iterable sequence of integers.
Intervals are separated by comma ','.
An interval is a range represented by two numbers and a hyphen
e.g. "3-6". If the second number is omitted the interval goes to maxnum.
An interval can also consist of a single number e.g. "7".
Valid NumRanges: "1-10,13-20", "3,5,9", "1-".
- Author:
- casties
-
Constructor Details
-
NumRange
- Parameters:
start
- the startend
- the end
-
NumRange
- Parameters:
range
- the range
-
NumRange
- Parameters:
range
- the rangemax
- the maximum
-
-
Method Details