Package net.codecrete.qrbill.generator
Class Strings
- java.lang.Object
-
- net.codecrete.qrbill.generator.Strings
-
public class Strings extends java.lang.ObjectHelper function for processing strings.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisNullOrEmpty(java.lang.String value)Tests if a string is null or emptystatic java.lang.Stringtrimmed(java.lang.String value)Returns string with leading and trailing whitespace removedstatic java.lang.StringwhiteSpaceRemoved(java.lang.String value)Returns string without white space
-
-
-
Method Detail
-
trimmed
public static java.lang.String trimmed(java.lang.String value)
Returns string with leading and trailing whitespace removedFor empty strings or
null,nullis returned.- Parameters:
value- string to trim ornull- Returns:
- trimmed string
-
whiteSpaceRemoved
public static java.lang.String whiteSpaceRemoved(java.lang.String value)
Returns string without white space- Parameters:
value- string to process (non null)- Returns:
- resulting string with all whitespace removed
-
isNullOrEmpty
public static boolean isNullOrEmpty(java.lang.String value)
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
-
-