public class TextUtils
extends java.lang.Object
TextUtils. This is to enable unit testing
code that relies on it, on the JVM.| Constructor and Description |
|---|
TextUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getNotEmptyOrNullValue(java.lang.String str)
Return either non empty value or null value if empty
|
static boolean |
isEmpty(java.lang.CharSequence str)
Returns true if the string is null or 0-length.
|
@Contract(value="null -> true")
public static boolean isEmpty(@Nullable
java.lang.CharSequence str)
str - the string to be examined@Nullable
public static java.lang.String getNotEmptyOrNullValue(@NonNull
java.lang.String str)
str - the String on which the method will runstr if it is not empty, null otherwise