|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.user.client.StringUtils
public class StringUtils
Operations on Strings.
| Constructor Summary | |
|---|---|
protected |
StringUtils()
Constructor. |
| Method Summary | |
|---|---|
static boolean |
areEqual(String expected,
String actual)
|
static boolean |
isEmpty(String str)
Check is a String is empty ("") or null. |
static String |
join(Collection<?> collection,
String inputSeparator)
Joins the elements of the provided collection into a single string containing the provided elements. |
static String |
substringAfterLast(String str,
String pattern)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected StringUtils()
| Method Detail |
|---|
public static boolean isEmpty(String str)
str - String to inspect.
public static String substringAfterLast(String str,
String pattern)
str - the string to search inpattern - the pattern to search in str
str after the last occurrence of pattern, or the full str if
pattern does not appear
public static boolean areEqual(String expected,
String actual)
expected - the expected stringactual - the actual string
true if the given strings are equal, false otherwise
public static String join(Collection<?> collection,
String inputSeparator)
null separator is the same as an empty string ("").
collection - the collection of values to join together, may be nullinputSeparator - the separator string to use, null treated as ""
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||