public final class StringUtils
extends java.lang.Object
Constructor and Description |
---|
StringUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsWhitespace(java.lang.String str)
Checks whether a string contains any whitespace characters or not.
|
static boolean |
secureCompare(java.lang.String a,
java.lang.String b)
Compares two strings for equality.
|
static java.lang.String |
toSnakeCase(java.lang.String str)
Converts the string to snake case.
|
public static boolean containsWhitespace(java.lang.String str)
str
- the string to check.true
if the string contains any whitespace characters; otherwise, false
.public static boolean secureCompare(java.lang.String a, java.lang.String b)
a
- one of the strings to compare.b
- the other string to compare.public static java.lang.String toSnakeCase(java.lang.String str)
str
- the string to convert.