public class CharacterRange extends Object
| Constructor and Description |
|---|
CharacterRange(char c)
Constructor for a single char
|
CharacterRange(char from,
char to)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
char |
getFrom() |
char |
getTo() |
int |
hashCode() |
boolean |
matches(char c)
Does a character match this range?
|
String |
toString() |
public CharacterRange(char from,
char to)
from - the starting characterto - the ending characterpublic CharacterRange(char c)
c - a characterCopyright © 2017. All rights reserved.