|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.surefire.util.internal.StringUtils
public class StringUtils
Common String
manipulation routines.
Originally from Turbine and the GenerationJavaCore library.
Constructor Summary | |
---|---|
StringUtils()
|
Method Summary | |
---|---|
static boolean |
isBlank(String str)
Checks if a (trimmed) String is null or blank. |
static String |
replace(String text,
String repl,
String with)
Replace all occurrences of a String within another String. |
static String[] |
split(String text,
String separator)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtils()
Method Detail |
---|
public static String[] split(String text, String separator)
public static String replace(String text, String repl, String with)
Replace all occurrences of a String within another String.
A null
reference passed to this method is a no-op.
text
- text to search and replace inrepl
- String to search forwith
- String to replace with
public static boolean isBlank(String str)
Checks if a (trimmed) String is null
or blank.
str
- the String to check
true
if the String is null
, or
length zero once trimmed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |