- isEmpty
Checks if a (trimmed) String is null or empty.
Note: In future releases, this method will no long
- isNotEmpty
Checks if a String is non null and is not empty (length > 0).
- isBlank
Checks if a String is whitespace, empty ("") or null.
StringUtils.isBlank(null) = true
Str
- split
Splits the provided text into a array, based on a given separator.
The separator is not included
- join
Joins the elements of the provided array into a single String containing the
provided list of elemen
- isNotBlank
Checks if a String is not empty (""), not null and not whitespace only.
StringUtils.isNotBlank(n
- replace
Replace a String with another String inside a larger String, for the first max
values of the search
- chompLast
Remove a value if and only if the String ends with that value.
- defaultString
Returns either the passed in Object as a String, or, if the Object is null, a
passed in default Stri
- repeat
Repeat a String n times to form a new string.
- stripEnd
Strip any of a supplied String from the end of a String.
If the strip String is null, whitespace
- abbreviate
Turn "Now is the time for all good men" into "...is the time for..." Works like
abbreviate(String, i