public class Strings
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isNullOrEmpty(java.lang.String value)
Tests if a string is null or empty
A string consisting of all whitespace is
considered empty.
|
static java.lang.String |
trimmed(java.lang.String value)
Returns string with leading and trailing whitespace removed
For empty strings,
null is returned. |
static java.lang.String |
whiteSpaceRemoved(java.lang.String value)
Returns string without white space
|
public static java.lang.String trimmed(java.lang.String value)
For empty strings, null is returned.
value - string to trimpublic static java.lang.String whiteSpaceRemoved(java.lang.String value)
value - string to processpublic static boolean isNullOrEmpty(java.lang.String value)
A string consisting of all whitespace is considered empty.
value - string to test