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.
|
boolean |
equals(java.lang.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(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- the other rangepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object