|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.util.Matcher
public class Matcher
A simple class that performs multiple matching on strings, i.e. a given
string must fulfill all the given search criteria.
E.g. if the given search string is what ever
, then it'll be
broken up into the two strings what
and ever
.
If we then match what letter did you never write?
against it,
we get a match for what
and ever
(in
never
), i.e. we get a match.
Constructor Summary | |
---|---|
Matcher()
|
Method Summary | |
---|---|
static boolean |
matches(java.lang.String src,
java.lang.String search)
checks the given src string against the search string (case-insensitive) |
static boolean |
matches(java.lang.String src,
java.lang.String[] search)
checks the given src string against the search array (case-insensitive) |
static boolean |
matches(java.lang.String src,
java.lang.String[] search,
boolean casesensitive)
checks the given src string against the search array |
static boolean |
matches(java.lang.String src,
java.lang.String search,
boolean casesensitive)
checks the given src string against the search string |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Matcher()
Method Detail |
---|
public static boolean matches(java.lang.String src, java.lang.String search)
public static boolean matches(java.lang.String src, java.lang.String search, boolean casesensitive)
public static boolean matches(java.lang.String src, java.lang.String[] search)
public static boolean matches(java.lang.String src, java.lang.String[] search, boolean casesensitive)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |