(Object value)
| 474 | } |
| 475 | |
| 476 | @Override |
| 477 | public boolean containsValue(Object value) { |
| 478 | Iterator<V> it = values().iterator(); |
| 479 | if (value != null) { |
| 480 | while (it.hasNext()) { |
| 481 | if (value.equals(it.next())) { |
| 482 | return true; |
| 483 | } |
| 484 | } |
| 485 | } else { |
| 486 | while (it.hasNext()) { |
| 487 | if (it.next() == null) { |
| 488 | return true; |
| 489 | } |
| 490 | } |
| 491 | } |
| 492 | return false; |
| 493 | } |
| 494 | |
| 495 | @Override |
| 496 | public Set<Map.Entry<K, V>> entrySet() { |