2075 |
|
// Hashtable legacy methods |
2076 |
|
|
2077 |
|
/** |
2078 |
< |
* Legacy method testing if some key maps into the specified value |
2079 |
< |
* in this table. |
2078 |
> |
* Tests if some key maps into the specified value in this table. |
2079 |
|
* |
2080 |
< |
* @deprecated This method is identical in functionality to |
2080 |
> |
* <p>Note that this method is identical in functionality to |
2081 |
|
* {@link #containsValue(Object)}, and exists solely to ensure |
2082 |
|
* full compatibility with class {@link java.util.Hashtable}, |
2083 |
< |
* which supported this method prior to introduction of the |
2084 |
< |
* Java Collections framework. |
2083 |
> |
* which supported this method prior to introduction of the Java |
2084 |
> |
* Collections Framework. |
2085 |
|
* |
2086 |
|
* @param value a value to search for |
2087 |
|
* @return {@code true} if and only if some key maps to the |
2090 |
|
* {@code false} otherwise |
2091 |
|
* @throws NullPointerException if the specified value is null |
2092 |
|
*/ |
2094 |
– |
@Deprecated |
2093 |
|
public boolean contains(Object value) { |
2094 |
|
return containsValue(value); |
2095 |
|
} |