- java.lang.Object
-
- com.appslandia.common.utils.StringUtils
-
-
Field Summary
Fields Modifier and Type Field Description static StringDOUBLE_LINE_SEPstatic String[]EMPTY_ARRAYstatic StringEMPTY_STRING
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontainsIgnoreCase(String str, String substr)static booleanendsWithIgnoreCase(String str, String substr)static StringfirstLowerCase(String str, Locale locale)static StringfirstUpperCase(String str, Locale locale)static booleanisNullOrBlank(String str)static booleanisNullOrEmpty(String str)static Stringjoin(char delimiter, boolean willWrap, CharSequence... elements)static Stringjoin(char delimiter, boolean willWrap, Iterable<? extends CharSequence> elements)static StringnullOrLowerCase(String str, Locale locale)static StringnullOrUpperCase(String str, Locale locale)static booleanstartsWithIgnoreCase(String str, String substr)static StringtoLowerCase(String str, Locale locale)static StringtoUpperCase(String str, Locale locale)static StringtrimToDefault(String str, String defaultValue)static StringtrimToEmpty(String str)static StringtrimToNull(String str)static StringtrimToNull(String str, char charToTrim)
-
-
-
Field Detail
-
EMPTY_STRING
public static final String EMPTY_STRING
- See Also:
- Constant Field Values
-
EMPTY_ARRAY
public static final String[] EMPTY_ARRAY
-
DOUBLE_LINE_SEP
public static final String DOUBLE_LINE_SEP
-
-
Method Detail
-
isNullOrEmpty
public static boolean isNullOrEmpty(String str)
-
isNullOrBlank
public static boolean isNullOrBlank(String str)
-
join
public static String join(char delimiter, boolean willWrap, Iterable<? extends CharSequence> elements)
-
join
public static String join(char delimiter, boolean willWrap, CharSequence... elements)
-
-