- isBlank
Checks if a String is whitespace, empty ("") or null.
StringUtils.isBlank(null) = true
Stri
- isEmpty
Checks if a String is empty ("") or null.
StringUtils.isEmpty(null) = true
StringUtils.isEm
- isNotBlank
Checks if a String is not empty (""), not null and not whitespace only.
StringUtils.isNotBlank(nu
- join
Joins the elements of the provided array into a single String containing the
provided list of elemen
- isNotEmpty
Checks if a String is not empty ("") and not null.
StringUtils.isNotEmpty(null) = false
Str
- split
Splits the provided text into an array with a maximum length, separators
specified.
The separator i
- equals
Compares two Strings, returning true if they are equal.
nulls are handled without exceptions. Two n
- replace
Replaces a String with another String inside a larger String, for the first max
values of the searc
- trim
Removes control characters (char <= 32) from both ends of this String, handling
null by returningnu
- capitalize
Capitalizes a String changing the first letter to title case as per
Character#toTitleCase(char). No
- contains
Checks if String contains a search String, handling null. This method uses
String#indexOf(String).
- substringAfter
Gets the substring after the first occurrence of a separator. The separator is
not returned.
A null