Package io.micrometer.tracing.util
Class StringUtils
java.lang.Object
io.micrometer.tracing.util.StringUtils
Utilities for
String.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCheck if the String is null or has only whitespaces.static booleanCheck if the String is null or empty.static booleanisNotBlank(String string) Check if the String has any non-whitespace character.static booleanisNotEmpty(String string) Check if the String has any character.
-
Method Details
-
isBlank
Check if the String is null or has only whitespaces. Modified fromorg.apache.commons.lang.StringUtils#isBlank(String).- Parameters:
string- String to check- Returns:
trueif the String is null or has only whitespaces
-
isNotBlank
Check if the String has any non-whitespace character.- Parameters:
string- String to check- Returns:
trueif the String has any non-whitespace character
-
isEmpty
Check if the String is null or empty.- Parameters:
string- String to check- Returns:
trueif the String is null or empty
-
isNotEmpty
Check if the String has any character.- Parameters:
string- String to check- Returns:
trueif the String has any character- Since:
- 1.1.0
-