public static final class RegexTranslator.Range extends Object implements Comparable
Constructor and Description |
---|
Range(int min,
int max)
Create a range of unicode codepoints
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o)
Compare this range with another range for ordering purposes.
|
boolean |
equals(Object obj) |
int |
getMax()
Get the end of the range
|
int |
getMin()
Get the start of the range
|
int |
hashCode() |
public Range(int min, int max)
min
- the first codepoint in the rangemax
- the last codepoint in the rangepublic int getMin()
public int getMax()
public int compareTo(Object o)
compareTo
in interface Comparable
o
- the other range