/*
*******************************************************************************
- * Copyright (C) 2009-2011, International Business Machines Corporation and *
+ * Copyright (C) 2009-2013, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
}
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.
*