-
public class TextUtils
-
-
Method Summary
Modifier and Type Method Description static booleanisEmpty(@Nullable() CharSequence str)Returns true if the string is null or 0-length. static booleanequals(CharSequence a, CharSequence b)Returns true if a and b are equal, including if they are both null. -
-
Method Detail
-
isEmpty
static boolean isEmpty(@Nullable() CharSequence str)
Returns true if the string is null or 0-length.
- Parameters:
str- the string to be examined
-
equals
static boolean equals(CharSequence a, CharSequence b)
Returns true if a and b are equal, including if they are both null.
Note: In platform versions 1.1 and earlier, this method only worked well ifboth the arguments were instances of String.
- Parameters:
a- first CharSequence to checkb- second CharSequence to check
-
-
-
-