| 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 |
getHumanReadableTimeDiff(long timeDifferenceMilliseconds)
Get time for summary logging purposes.
|
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 getHumanReadableTimeDiff(long timeDifferenceMilliseconds)
timeDifferenceMilliseconds - the time taken to run the test planCopyright © 2019 WSO2. All rights reserved.