Package org.testng.util
Class Strings
- java.lang.Object
-
- org.testng.util.Strings
-
public final class Strings extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
escapeHtml(String text)
static String
getValueOrEmpty(String string)
static boolean
isNotNullAndNotEmpty(String string)
static boolean
isNullOrEmpty(String string)
static String
join(String delimiter, String[] parts)
static String
valueOf(Map<?,?> m)
-
-
-
Method Detail
-
isNullOrEmpty
public static boolean isNullOrEmpty(String string)
-
isNotNullAndNotEmpty
public static boolean isNotNullAndNotEmpty(String string)
-
getValueOrEmpty
public static String getValueOrEmpty(String string)
- Parameters:
string
- - The input String.- Returns:
- - Returns an empty string if the input String is
null
(or) empty, else it returns back the input string.
-
-