Package org.wso2.ei.dashboard.bootstrap
Class StringUtils
- java.lang.Object
-
- org.wso2.ei.dashboard.bootstrap.StringUtils
-
public class StringUtils extends Object
Utility class for String manipulations.
-
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisEmpty(String str)Checks if a String is empty ("") or null.
-
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(String str)
Checks if a String is empty ("") or null.
StringUtils.isEmpty(null) = true StringUtils.isEmpty("") = true StringUtils.isEmpty(" ") = false StringUtils.isEmpty("bob") = false StringUtils.isEmpty(" bob ") = falseNOTE: This method changed in Lang version 2.0. It no longer trims the String. That functionality is available in isBlank().
- Parameters:
str- the String to check, may be null- Returns:
trueif the String is empty or null
-
-