public class StringUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
equalsIgnoreCase(java.util.Optional<java.lang.String> optionalString1,
java.util.Optional<java.lang.String> optionalString2)
Returns if both strings in the optionals exit and are the case insensitive equals.
|
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.public static boolean equalsIgnoreCase(java.util.Optional<java.lang.String> optionalString1, java.util.Optional<java.lang.String> optionalString2)
optionalString1
- the first optionaloptionalString2
- the second optional