Returns true if this Hashtable contains the specified object as the value of at least one of the key/value pairs. @param value the object to look for as a value in this Hashtable. @return true if object is a value in this Hashtable, false o
(Object value)
| 302 | * @see java.lang.Object#equals |
| 303 | */ |
| 304 | public synchronized boolean contains(Object value) { |
| 305 | if (value == null) { |
| 306 | throw new NullPointerException(); |
| 307 | } |
| 308 | |
| 309 | for (int i = elementData.length; --i >= 0;) { |
| 310 | Entry<K, V> entry = elementData[i]; |
| 311 | while (entry != null) { |
| 312 | if (entry.value.equals(value)) { |
| 313 | return true; |
| 314 | } |
| 315 | entry = entry.next; |
| 316 | } |
| 317 | } |
| 318 | return false; |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * Returns true if this {@code Hashtable} contains the specified object as a |
no test coverage detected