]> granicus.if.org Git - icu/commitdiff
ICU-8662 exposed some API (as @internal)
authorMark Davis <mark@macchiato.com>
Thu, 23 Jun 2011 17:29:16 +0000 (17:29 +0000)
committerMark Davis <mark@macchiato.com>
Thu, 23 Jun 2011 17:29:16 +0000 (17:29 +0000)
X-SVN-Rev: 30225

icu4j/main/classes/core/src/com/ibm/icu/text/DateTimePatternGenerator.java

index 7aa5f5f76da33001618624dd712eb6cd8f46fe9e..287f6f371d2a8ab0eb471457d0ce0c84fab965fe 100644 (file)
@@ -1098,13 +1098,24 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
             return types[canonicalIndex][1];
         }
 
+        /**
+         * @internal
+         * @deprecated This API is ICU internal only.
+         */
+        public static String getCanonicalCode(int type) {
+            try {
+                return CANONICAL_ITEMS[type];
+            } catch (Exception e) {
+                return String.valueOf(type);
+            }
+        }
         /**
          * Check if the type of this variable field is numeric.
          * @return true if the type of this variable field is numeric.
          * @internal
          * @deprecated This API is ICU internal only.
          */
-        protected boolean isNumeric() {
+        public boolean isNumeric() {
             return types[canonicalIndex][2] > 0;
         }