public class SimplePattern extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SimplePattern>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SimplePattern o) |
static SimplePattern |
compile(java.lang.String pattern) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isMatch(java.lang.CharSequence value)
Matches the
value with the compiled expression. |
java.lang.String |
toString() |
public boolean isMatch(java.lang.CharSequence value)
value with the compiled expression. The value
is considered matching if all characters are matched by the expression. A
partial match is not enough.value - The value to matchtrue if the value was a match.public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(SimplePattern o)
compareTo in interface java.lang.Comparable<SimplePattern>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static SimplePattern compile(java.lang.String pattern)