Package 

Class TextUtils

    • Method Summary

      Modifier and Type Method Description
      static boolean isEmpty(@Nullable() CharSequence str) Returns true if the string is null or 0-length.
      static boolean equals(CharSequence a, CharSequence b) Returns true if a and b are equal, including if they are both null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 check
        b - second CharSequence to check