]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - jars/icu4j-52_1/main/classes/core/src/com/ibm/icu/text/CurrencyPluralInfo.java
Upgrade ICU4J.
[Dictionary.git] / jars / icu4j-52_1 / main / classes / core / src / com / ibm / icu / text / CurrencyPluralInfo.java
similarity index 93%
rename from jars/icu4j-4_8_1_1/main/classes/core/src/com/ibm/icu/text/CurrencyPluralInfo.java
rename to jars/icu4j-52_1/main/classes/core/src/com/ibm/icu/text/CurrencyPluralInfo.java
index 6586190800e8baf1f8d509bea65fd61c12eb091c..64f57a3e50f16bf10012ca1157886b21f793e85d 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2009-2011, International Business Machines Corporation and    *
+ * Copyright (C) 2009-2013, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -218,15 +218,38 @@ public class CurrencyPluralInfo implements Cloneable, Serializable {
         }
         return false;
     }
+    
+    /**
+     * Mock implementation of hashCode(). This implementation always returns a constant
+     * value. When Java assertion is enabled, this method triggers an assertion failure.
+     * @internal
+     * @deprecated This API is ICU internal only.
+     */
+    public int hashCode() {
+        assert false : "hashCode not designed";
+        return 42;
+    }
 
     /**
      * Given a number, returns the keyword of the first rule that applies
      * to the number.
+     * @internal
+     * @deprecated This API is ICU internal only.
      */
     String select(double number) {
         return pluralRules.select(number);
     }
 
+    /**
+     * Given a number, returns the keyword of the first rule that applies
+     * to the number.
+     * @internal
+     * @deprecated This API is ICU internal only.
+     */
+    String select(PluralRules.FixedDecimal numberInfo) {
+        return pluralRules.select(numberInfo);
+    }
+
     /**
      * Currency plural pattern iterator.
      *