public final class RWildCard
extends java.lang.Object
History:
Modifier and Type | Field and Description |
---|---|
static char |
BEGIN
a character symbol for represetning the beginning of a string
|
static char |
CHARACTER
a character symbol for representing any character
|
static char |
DIGIT
a character symbol for representing a digit [0-9]
|
static char |
END
a character symbol for represetning the end of a string
|
static char |
LETTER
a character symbol for representing a letter [a-z], [A-Z]
|
static char |
PUNCTUATION
a character symbol for representing punctuations: - (, ,
|
static char |
SPACE
a character symbol for representing a character " "
|
Constructor and Description |
---|
RWildCard()
private constructor to make sure no one use it (since all public methods
in this class are static)
|
Modifier and Type | Method and Description |
---|---|
static boolean |
IsMatchKey(char key,
int index,
char[] inCharArray)
Check if a specific key matches a character of a pattern.
|
public static final char BEGIN
public static final char END
public static final char CHARACTER
public static final char DIGIT
public static final char LETTER
public static final char SPACE
public static final char PUNCTUATION
public RWildCard()
public static boolean IsMatchKey(char key, int index, char[] inCharArray)
key
- the key character to be checked for matchingindex
- the index of character in the input array for matchinginCharArray
- a character array to represent a suffix