|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.util.Strings
public final class Strings
Understands utility methods related to String
s.
Method Summary | |
---|---|
static boolean |
areEqualOrMatch(String pattern,
String s)
Indicates if the given String s match. |
static boolean |
isDefaultToString(String s)
Returns whether the given String is the default toString() implementation of an
Object . |
static boolean |
match(Pattern p,
CharSequence s)
Indicates if the given CharSequence matches the given regular expression pattern. |
static boolean |
match(Pattern p,
String s)
Indicates if the given String matches the given regular expression pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isDefaultToString(String s)
String
is the default toString()
implementation of an
Object
.
s
- the given String
.
true
if the given String
is the default toString()
implementation,
false
otherwise.public static boolean areEqualOrMatch(String pattern, String s)
String
s match. To match, one of the following conditions needs to be true:
String
s have to be equals
matches the regular expression in pattern
pattern
- a String
to match (it can be a regular expression.)s
- the String
to verify.
true
if the given String
s match, false
otherwise.public static boolean match(Pattern p, String s)
String
matches the given regular expression pattern.
p
- the given regular expression pattern.s
- the String
to evaluate.
true
if the given String
matches the given regular expression pattern,
false
otherwise. It also returns false
if the given String
is
null
.
NullPointerException
- if the given regular expression pattern is null
.public static boolean match(Pattern p, CharSequence s)
CharSequence
matches the given regular expression pattern.
p
- the given regular expression pattern.s
- the CharSequence
to evaluate.
true
if the given CharSequence
matches the given regular expression pattern,
false
otherwise. It also returns false
if the given CharSequence
is
null
.
NullPointerException
- if the given regular expression pattern is null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |