Returns true if and only if this dictionary contains KEY as the key of some key-value pair.
(K key)
| 52 | /** Returns true if and only if this dictionary contains KEY as the |
| 53 | * key of some key-value pair. */ |
| 54 | public boolean containsKey(K key) { |
| 55 | if (list == null) { |
| 56 | return false; |
| 57 | } |
| 58 | return list.get(key) != null; |
| 59 | } |
| 60 | |
| 61 | @Override |
| 62 | public Iterator<K> iterator() { |