net.sf.saxon.regex
Class RegexTranslator.Range
java.lang.Object
net.sf.saxon.regex.RegexTranslator.Range
- RegexTranslator
- Comparable
public static final class RegexTranslator.Range
extends java.lang.Object
implements Comparable
A Range represents a range of consecutive Unicode codepoints
Range(int min, int max) - Create a range of unicode codepoints
|
int | compareTo(Object o) - Compare this range with another range for ordering purposes.
|
int | getMax() - Get the end of the range
|
int | getMin() - Get the start of the range
|
Range
public Range(int min,
int max)
Create a range of unicode codepoints
min
- the first codepoint in the rangemax
- the last codepoint in the range
compareTo
public int compareTo(Object o)
Compare this range with another range for ordering purposes. If the two ranges have different
start points, the order is the order of the start points; otherwise it is the order of the end
points.
- -1 if this range comes first, +1 if the other range comes first, 0 if they are equal
(start and end both equal)
getMax
public int getMax()
Get the end of the range
- the last codepoint in the range
getMin
public int getMin()
Get the start of the range
- the first codepoint in the range