code: @Deprecated
      public static int compare(CharSequence a, CharSequence b) {
          int alength = a.length();
          int blength = b.length();
          int min = alength <= blength ? alength : blength;
          for (int i = 0; i < min; ++i) {
              int diff = a.charAt(i) - b.charAt(i);
              if (diff != 0) {
                  return diff;
              }
          }
          return alength - blength;
      }
docs: Utility for comparing the contents of CharSequences
  
  @deprecated This API is ICU internal only.
  @hide draft / provisional / internal are hidden on Android