java.lang.Comparable
public static final class RegexTranslator.Range
extends java.lang.Object
implements java.lang.Comparable
Constructor | Description |
---|---|
Range(int min,
int max) |
Create a range of unicode codepoints
|
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(java.lang.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
|
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(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- the other range