ICU-8854 add API status comment to dummy hashCode functions.

X-SVN-Rev: 31067
This commit is contained in:
Abhinav Gupta 2011-12-08 18:06:45 +00:00
parent a10116996d
commit 6e73c9e17f
5 changed files with 30 additions and 0 deletions

View 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;

View 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;

View 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();
}

View 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;

View 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;