Class Strings
java.lang.Object
net.codecrete.qrbill.generator.Strings
Helper function for processing strings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisNullOrEmpty(String value) Tests if a string is null or emptystatic StringspacesCleaned(String value) Returns a string without leading and trailing spaces and with all consecutive space characters replaced by a single space.static StringReturns string with leading and trailing whitespace removedstatic StringwhiteSpaceRemoved(String value) Returns string without white space
-
Method Details
-
trimmed
-
whiteSpaceRemoved
-
isNullOrEmpty
Tests if a string is null or emptyA string consisting of all whitespace is considered empty.
- Parameters:
value- string to test- Returns:
- boolean indicating if string is null or empty
-
spacesCleaned
-