Package io.hypersistence.utils.common
Class StringUtils
java.lang.Object
io.hypersistence.utils.common.StringUtils
StringUtils
- String utilities holder.- Since:
- 2.5.1
- Author:
- Vlad Mihalcea
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Check if the String value is null, empty or contains only whitespace characters.static String
join
(CharSequence delimiter, CharSequence... elements) Join the providedelements
separated by thedelimiter
.static String
toLowercase
(String value) Transform string to lowercase.
-
Field Details
-
LINE_SEPARATOR
-
TRUE
-
FALSE
-
-
Method Details
-
join
Join the providedelements
separated by thedelimiter
.- Parameters:
delimiter
- delimiterelements
- elements to join- Returns:
- the {link @String} result obtained from joining all elements
-
isBlank
Check if the String value is null, empty or contains only whitespace characters.- Parameters:
value
- String value- Returns:
- if the string is blank
-
toLowercase
Transform string to lowercase.- Parameters:
value
- String value- Returns:
- String value in lowercase
-