public class TextUtilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static StringBuilder |
concat(String... strings)
Concatenate strings.
|
static boolean |
equal(String s1,
String s2)
Check if two strings are equal.
|
static boolean |
equalIgnoreCase(String s1,
String s2)
Check if two strings are equal.
|
static boolean |
isEmpty(String s)
Check if a String is
null or empty. |
static StringBuilder |
join(String separator,
Iterable<?> iterable)
Concatenate strings and separate them with a separator.
|
static StringBuilder |
join(String separator,
String... strings)
Concatenate strings and separate them with a separator.
|
public static boolean isEmpty(String s)
null or empty.s - the stringtrue if the string is empty.public static StringBuilder concat(String... strings)
strings - an arbitrary number of stringsStringBuilderpublic static boolean equal(String s1, String s2)
s1 - the first string or nulls2 - the second string or nulltrue if both strings are null or contain equal character sequencespublic static boolean equalIgnoreCase(String s1, String s2)
s1 - the first string or nulls2 - the second string or nulltrue if both strings are null or contain equal character sequences ignoring their casepublic static StringBuilder join(String separator, String... strings)
separator - the separatorstrings - the stringsStringBuilderpublic static StringBuilder join(String separator, Iterable<?> iterable)
separator - the separatoriterable - used to retrieve the strings with its IteratorStringBuilderCopyright © 2014–2016 Tomas Teubner. All rights reserved.