| 151 | } |
| 152 | |
| 153 | private static class MyEntry<K,V> implements Entry<K,V> { |
| 154 | public final K key; |
| 155 | public V value; |
| 156 | |
| 157 | public MyEntry(K key, V value) { |
| 158 | this.key = key; |
| 159 | this.value = value; |
| 160 | } |
| 161 | |
| 162 | public K getKey() { |
| 163 | return key; |
| 164 | } |
| 165 | |
| 166 | public V getValue() { |
| 167 | return value; |
| 168 | } |
| 169 | |
| 170 | public V setValue(V value) { |
| 171 | V old = this.value; |
| 172 | this.value = value; |
| 173 | return old; |
| 174 | } |
| 175 | |
| 176 | } |
| 177 | |
| 178 | private class KeySet extends AbstractSet<K> { |
| 179 | public int size() { |
nothing calls this directly
no outgoing calls
no test coverage detected