| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
concatStrings(Object... objects)
Returns a string concatenating the given strings.
|
static String |
generateRandomString(int characterCount)
Generates a random string with the given character count using the below charset as input:
ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890
|
static String |
getPropertiesAsString(Properties properties)
Generate a string which include all the properties (key and the value).
|
static boolean |
isStringNullOrEmpty(String string)
Returns whether the given string is a null or empty.
|
public static boolean isStringNullOrEmpty(String string)
string - string to check whether null or emptytrue if the string is null or empty, false otherwisepublic static String concatStrings(Object... objects)
objects - list of objects to concatenate as stringspublic static String generateRandomString(int characterCount)
characterCount - number of characterspublic static String getPropertiesAsString(Properties properties)
properties - PropertiesCopyright © 2018 WSO2. All rights reserved.