|
||||||||||
| 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(java.lang.String expected,
java.lang.String actual)
|
static boolean |
isEmpty(java.lang.String str)
Check is a String is empty ("") or null. |
static java.lang.String |
join(java.util.Collection<?> collection,
java.lang.String inputSeparator)
Joins the elements of the provided collection into a single string containing the provided elements. |
static java.lang.String |
substringAfterLast(java.lang.String str,
java.lang.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(java.lang.String str)
str - String to inspect.
public static java.lang.String substringAfterLast(java.lang.String str,
java.lang.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(java.lang.String expected,
java.lang.String actual)
expected - the expected stringactual - the actual string
true if the given strings are equal, false otherwise
public static java.lang.String join(java.util.Collection<?> collection,
java.lang.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 | |||||||||