public class Pattern
extends java.lang.Object
A boolean controls the detailed behaviour of the compare process.
If the given string matches the pattern in the object the method match returns true, otherwise false is returned.
The following flags are supported:
CASE_SENSITIVE Compare the strings as they are. CASE_BLIND Compare without regard to case.
Modifier and Type | Field and Description |
---|---|
static boolean |
CASE_BLIND |
static boolean |
CASE_SENSITIVE |
Constructor and Description |
---|
Pattern() |
public static final boolean CASE_SENSITIVE
public static final boolean CASE_BLIND
public static boolean match(java.lang.String string, java.lang.String pattern, boolean caseBlind)
string
- The string to be compared against the pattern.pattern
- The pattern.caseBlind
- The case compare state.public static void main(java.lang.String[] args)