Package com.mchange.v2.lang
Class StringUtils
- java.lang.Object
-
- com.mchange.v2.lang.StringUtils
-
public final class StringUtils extends java.lang.Object
requires JDK1.4+ (try com.mchange.lang.StringUtils for older JVMs)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
EMPTY_STRING_ARRAY
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
getUTF8Bytes(java.lang.String s)
static java.lang.String
nonEmptyOrNull(java.lang.String s)
static boolean
nonEmptyString(java.lang.String s)
static java.lang.String
nonEmptyTrimmedOrNull(java.lang.String s)
static java.lang.String
nonNullOrBlank(java.lang.String s)
static boolean
nonWhitespaceString(java.lang.String s)
static java.lang.String
normalString(java.lang.String s)
static java.lang.String[]
splitCommaSeparated(java.lang.String commaSep, boolean trim)
-
-
-
Method Detail
-
normalString
public static java.lang.String normalString(java.lang.String s)
-
nonEmptyString
public static boolean nonEmptyString(java.lang.String s)
-
nonWhitespaceString
public static boolean nonWhitespaceString(java.lang.String s)
-
nonEmptyOrNull
public static java.lang.String nonEmptyOrNull(java.lang.String s)
-
nonNullOrBlank
public static java.lang.String nonNullOrBlank(java.lang.String s)
-
nonEmptyTrimmedOrNull
public static java.lang.String nonEmptyTrimmedOrNull(java.lang.String s)
-
getUTF8Bytes
public static byte[] getUTF8Bytes(java.lang.String s)
-
splitCommaSeparated
public static java.lang.String[] splitCommaSeparated(java.lang.String commaSep, boolean trim)
-
-