Class Overview
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.
Summary
Public Methods |
static
boolean
|
matches(String pattern, String text)
Check whether a given pattern is matched by text.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Methods
public
static
boolean
matches
(String pattern, String text)
Check whether a given pattern is matched by text.
Parameters
pattern
| pattern to match. May be null , in which case false will be returned |
text
| text to match against pattern. May be null , in which case false will
be returned |
Returns
true
, if text matches pattern, false
otherwise or if
text or pattern are null