Class SimplePattern
java.lang.Object
org.eclipse.equinox.p2.metadata.expression.SimplePattern
- All Implemented Interfaces:
Serializable,Comparable<SimplePattern>
A simple compiled pattern. It supports two kinds of wildcards. The '*' (any character zero to many times)
and the '?' (any character exactly one time).
- Since:
- 2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintstatic SimplePatternbooleaninthashCode()booleanisMatch(CharSequence value) Matches thevaluewith the compiled expression.toString()
-
Method Details
-
isMatch
Matches thevaluewith the compiled expression. The value is considered matching if all characters are matched by the expression. A partial match is not enough.- Parameters:
value- The value to match- Returns:
trueif the value was a match.
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<SimplePattern>
-
equals
-
hashCode
public int hashCode() -
compile
-