Top Fields Constructors Methods
org.testng.util

public final Class Strings

extends Object
Class Inheritance
Imports
java.util.List, .Map, .Optional, java.util.stream.Collectors, org.testng.collections.Maps

Field Summary

Modifier and TypeField and Description
private static final Map<String, String>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String
public static boolean

Returns:

true if the given string list is null or empty or all elements are null or empty or blank; otherwise false.
isBlankStringList
(List<String>
A list instance with String elements.
list
)

Check if the given string list is null or empty or all elements are null or empty or blank.

public static boolean
public static boolean
public static String
join(String delimiter, String[] parts)

public static String
valueOf(Map<?, ?> m)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ESCAPE_HTML_MAPback to summary
private static final Map<String, String> ESCAPE_HTML_MAP

Constructor Detail

Stringsback to summary
private Strings()

Method Detail

escapeHtmlback to summary
public static String escapeHtml(String text)
isBlankStringListback to summary
public static boolean isBlankStringList(List<String> list)

Check if the given string list is null or empty or all elements are null or empty or blank.

Parameters
list:List<String>

A list instance with String elements.

Returns:boolean

true if the given string list is null or empty or all elements are null or empty or blank; otherwise false.

isNotNullAndNotEmptyback to summary
public static boolean isNotNullAndNotEmpty(String string)
isNullOrEmptyback to summary
public static boolean isNullOrEmpty(String string)
joinback to summary
public static String join(String delimiter, String[] parts)
valueOfback to summary
public static String valueOf(Map<?, ?> m)