src/java.base/share/classes/java/lang/Character.java

Print this page

        

@@ -9083,11 +9083,11 @@
      * @see     Character#toLowerCase(int)
      * @see     Character#getType(int)
      * @since   1.5
      */
     public static boolean isLowerCase(int codePoint) {
-        return getType(codePoint) == Character.LOWERCASE_LETTER ||
+        return CharacterData.of(codePoint).isLowerCase(codePoint) ||
                CharacterData.of(codePoint).isOtherLowercase(codePoint);
     }
 
     /**
      * Determines if the specified character is an uppercase character.

@@ -9149,11 +9149,11 @@
      * @see     Character#toUpperCase(int)
      * @see     Character#getType(int)
      * @since   1.5
      */
     public static boolean isUpperCase(int codePoint) {
-        return getType(codePoint) == Character.UPPERCASE_LETTER ||
+        return CharacterData.of(codePoint).isUpperCase(codePoint) ||
                CharacterData.of(codePoint).isOtherUppercase(codePoint);
     }
 
     /**
      * Determines if the specified character is a titlecase character.

@@ -9300,11 +9300,11 @@
      * @see     Character#forDigit(int, int)
      * @see     Character#getType(int)
      * @since   1.5
      */
     public static boolean isDigit(int codePoint) {
-        return getType(codePoint) == Character.DECIMAL_DIGIT_NUMBER;
+        return CharacterData.of(codePoint).isDigit(codePoint);
     }
 
     /**
      * Determines if a character is defined in Unicode.
      * <p>