()
| 310 | } |
| 311 | |
| 312 | public Set entrySet(){ |
| 313 | return new AbstractSet(){ |
| 314 | |
| 315 | public Iterator iterator(){ |
| 316 | return APersistentMap.this.iterator(); |
| 317 | } |
| 318 | |
| 319 | public int size(){ |
| 320 | return count(); |
| 321 | } |
| 322 | |
| 323 | public int hashCode(){ |
| 324 | return APersistentMap.this.hashCode(); |
| 325 | } |
| 326 | |
| 327 | public boolean contains(Object o){ |
| 328 | if(o instanceof Entry) |
| 329 | { |
| 330 | Entry e = (Entry) o; |
| 331 | Entry found = entryAt(e.getKey()); |
| 332 | if(found != null && Util.equals(found.getValue(), e.getValue())) |
| 333 | return true; |
| 334 | } |
| 335 | return false; |
| 336 | } |
| 337 | }; |
| 338 | } |
| 339 | |
| 340 | public Object get(Object key){ |
| 341 | return valAt(key); |
no outgoing calls
no test coverage detected