|
Ajocado API 1.0.0.Alpha2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.arquillian.ajocado.utils.StringUtils
public final class StringUtils
| Method Summary | |
|---|---|
static boolean |
isEmpty(String str)
|
static String |
replace(String text,
String searchString,
String replacement)
|
static String |
replace(String text,
String searchString,
String replacement,
int max)
|
static String |
replaceOnce(String text,
String searchString,
String replacement)
|
static String[] |
split(String str,
String separatorChars)
Splits the provided text into an array, separators specified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String replace(String text,
String searchString,
String replacement)
public static String replaceOnce(String text,
String searchString,
String replacement)
public static String replace(String text,
String searchString,
String replacement,
int max)
public static boolean isEmpty(String str)
public static String[] split(String str,
String separatorChars)
Splits the provided text into an array, separators specified. This is an alternative to using StringTokenizer.
The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class.
A null input String returns null. A null separatorChars splits on
whitespace.
StringUtils.split(null, *) = null
StringUtils.split("", *) = []
StringUtils.split("abc def", null) = ["abc", "def"]
StringUtils.split("abc def", " ") = ["abc", "def"]
StringUtils.split("abc def", " ") = ["abc", "def"]
StringUtils.split("ab:cd:ef", ":") = ["ab", "cd", "ef"]
str - the String to parse, may be nullseparatorChars - the characters used as the delimiters, null splits on whitespace
null if null String input
|
Ajocado API 1.0.0.Alpha2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||