public class CharClassInterval extends Object
A character belongs to an interval, if its Unicode value is greater than or equal to the
Unicode value of start
and smaller than or equal to the Unicode value of end
.
All characters of the interval must belong to the same character class.
Constructor and Description |
---|
CharClassInterval(int start,
int end,
int charClass)
Creates a new CharClassInterval from
start to end that belongs to
character class charClass . |
Modifier and Type | Method and Description |
---|---|
String |
toString()
Returns string representation of this class interval.
|
public CharClassInterval(int start, int end, int charClass)
start
to end
that belongs to
character class charClass
.start
- The first character of the intervalend
- The last character of the intervalcharClass
- The code of the class all characters of this interval belong to.Copyright © 1998–2020. All rights reserved.