Package org.apache.webbeans.util
Class StringUtil
- java.lang.Object
-
- org.apache.webbeans.util.StringUtil
-
public final class StringUtil extends Object
a few static string utility methods
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisBlank(String val)static booleanisEmpty(String val)static booleanisNotEmpty(String val)
-
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(String val)
- Returns:
trueif the given string is eithernullor an empty string
-
isNotEmpty
public static boolean isNotEmpty(String val)
- Returns:
trueif the given string is not null and has a content
-
isBlank
public static boolean isBlank(String val)
- Returns:
trueif the given string is eithernullor an empty or blank string
-
-