|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swtbot.swt.finder.utils.StringUtils
public class StringUtils
A set of utilities for string manipulation.
| Constructor Summary | |
|---|---|
StringUtils()
|
|
| Method Summary | |
|---|---|
static String |
capitalize(String string)
Converts the string to capitalized. |
static boolean |
isEmpty(String text)
|
static boolean |
isEmptyOrNull(String string)
Checks if the given string is null or empty. |
static boolean |
isNull(String text)
|
static String |
join(Collection<?> toJoin,
String delimiter)
Joins a collection of objects using the given delimiter as spacing. |
static String |
join(Collection<?> toJoin,
String delimiter,
StringConverter converter)
Joins a collection of objects using the given delimiter as spacing. |
static String |
join(int[] toJoin,
String delimiter)
Joins the given integer array with the given delimiter. |
static String |
join(Object[] toJoin,
String delimiter)
Joins an array of objects using the given delimiter as spacing. |
static String |
join(Object[] toJoin,
String delimiter,
StringConverter converter)
Joins an array of objects using the given delimiter as spacing. |
static String |
toCamelCase(String string)
Converts the string to camelcase. |
| 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 join(Object[] toJoin,
String delimiter)
toJoin - the objects to join into a string.delimiter - the delimiter used to join the objects.
toJoin with delimiter.
public static String join(Object[] toJoin,
String delimiter,
StringConverter converter)
toJoin - the objects to join into a string.delimiter - the delimiter used to join the objects.converter - the converter that can convert objects in the collection into strings.
toJoin with delimiter.
public static String join(Collection<?> toJoin,
String delimiter)
toJoin - the objects to join into a string.delimiter - the delimiter used to join the objects.
toJoin with delimiter.
public static String join(Collection<?> toJoin,
String delimiter,
StringConverter converter)
toJoin - the objects to join into a string.delimiter - the delimiter used to join the objects.converter - the converter that can convert objects in the collection into strings.
toJoin with delimiter.public static boolean isEmptyOrNull(String string)
null or empty.
string - the string.
true if string is null, blank or whitespaces. false otherwise.
public static String join(int[] toJoin,
String delimiter)
toJoin - the integers to join into a string.delimiter - the delimiter.
toJoin with delimiter.public static boolean isEmpty(String text)
text - the text.
true if the text is empty, false otherwise.public static boolean isNull(String text)
text - the text.
true if the text is null, false otherwise.public static String toCamelCase(String string)
string - the string to be camelcased.
public static String capitalize(String string)
string - the string to capitalize.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||