]> granicus.if.org Git - icu/commitdiff
ICU-8854 add API status comment to dummy hashCode functions.
authorAbhinav Gupta <mail@abhinavg.net>
Thu, 8 Dec 2011 18:06:45 +0000 (18:06 +0000)
committerAbhinav Gupta <mail@abhinavg.net>
Thu, 8 Dec 2011 18:06:45 +0000 (18:06 +0000)
X-SVN-Rev: 31067

icu4j/main/classes/collate/src/com/ibm/icu/text/CollationElementIterator.java
icu4j/main/classes/core/src/com/ibm/icu/text/CurrencyPluralInfo.java
icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/StringPrepParseException.java
icu4j/main/classes/translit/src/com/ibm/icu/text/Transliterator.java

index 3d74fb6bea3226e09eee14d55f6c544e8c1841ac..5d207e6534b3597f759e75233866c602510666f2 100644 (file)
@@ -588,6 +588,12 @@ public final class CollationElementIterator
         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;
index d92753d0436e65e728dbc3f4286062242651f7fd..0d5fcf44f3e00683569e0e8647186002f2773d91 100644 (file)
@@ -219,6 +219,12 @@ 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;
index 5f374192e1829ba65ea5108e1ceab2315816a879..e45f33a60876c8a8ed058301779f4c43e989b0cf 100644 (file)
@@ -870,6 +870,12 @@ public class RuleBasedNumberFormat extends NumberFormat {
         }
     }
     
+    /**
+     * 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() {
         return super.hashCode();
     }
index 2c801a47d9887ffca3147313226a70b63b2bd60d..33dff122dfdb7e9891880955479bb2eae67ce68d 100644 (file)
@@ -137,6 +137,12 @@ public class StringPrepParseException extends ParseException {
         
     }
     
+    /**
+     * 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;
index 74a6edcb7b64eafd76e76fe6f9b11cb16f1a2877..faa3bb9f270cef0e44908f5ed190d46b24447ba4 100644 (file)
@@ -370,6 +370,12 @@ public abstract class Transliterator implements StringTransform  {
             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;