|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.utils.Wildcard
public final class Wildcard
Simple wildcard matcher, supporting '*' and '?' wildcard. Adapted from http://introcs.cs.princeton.edu/java/72regular/Wildcard.java.html that states it is NOT the most efficient implementation ever.
Method Summary | |
---|---|
static boolean |
matches(java.lang.String pattern,
java.lang.String text)
Check whether a given pattern is matched by text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean matches(@Nullable java.lang.String pattern, @Nullable java.lang.String text)
pattern
- pattern to match. May be null
, in which case false
will be returnedtext
- text to match against pattern. May be null
, in which case false
will
be returned
true
, if text matches pattern, false
otherwise or if
text or pattern are null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |