public class StringUtils
extends java.lang.Object
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isNullOrEmpty(java.lang.String str)
Determines if the specified string is null or empty.
|
static boolean |
isNullOrWhitespace(java.lang.String str)
Determines if the specified string is null or whitespace.
|
static java.lang.String |
replaceVariable(java.lang.String string,
java.lang.String name,
java.lang.String value)
Replaces a variable contained in a string with a value.
|
public static boolean isNullOrEmpty(java.lang.String str)
str - The string.public static boolean isNullOrWhitespace(java.lang.String str)
str - The string.public static java.lang.String replaceVariable(java.lang.String string,
java.lang.String name,
java.lang.String value)
string - String that contains variables.name - Name of the variable to be replaced with its value.value - Value that will replace the variable.