Package org.axonframework.common
Class StringUtils
java.lang.Object
org.axonframework.common.StringUtils
Utility methods for when dealing with
Strings.- Since:
- 4.5
- Author:
- Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Stringcapitalize(@Nullable String string) Return the givenstring, with its first character uppercase.static booleanemptyOrNull(@Nullable String s) static StringReturn the givens, with its first character lowercase.static booleanstatic booleannonEmptyOrNull(@Nullable String s)
-
Method Details
-
nonEmptyOrNull
-
emptyOrNull
-
nonEmpty
-
lowerCaseFirstCharacterOf
Return the givens, with its first character lowercase.- Parameters:
s- The input string to adjust to a version with the first character as a lowercase.- Returns:
- The input string, with first character lowercase.
-
capitalize
Return the givenstring, with its first character uppercase.When the given
stringisnull, the returned value is alsonull.- Parameters:
string- the input string to adjust to a version with the first character as uppercase- Returns:
- the input string, with first character in uppercase, or
nullif the givenstringisnull
-