code: @Deprecated
      public static int getSingleCodePoint(CharSequence s) {
          int length = s.length();
          if (length < 1 || length > 2) {
              return Integer.MAX_VALUE;
          }
          int result = Character.codePointAt(s, 0);
          return (result < 0x10000) == (length == 1) ? result : Integer.MAX_VALUE;
      }
docs: Return the value of the first code point, if the string is exactly one code point. Otherwise return Integer.MAX_VALUE.
  
  @deprecated This API is ICU internal only.
  @hide draft / provisional / internal are hidden on Android