()
| 396 | } |
| 397 | |
| 398 | public Collection values(){ |
| 399 | return new AbstractCollection(){ |
| 400 | |
| 401 | public Iterator iterator(){ |
| 402 | final Iterator mi = APersistentMap.this.iterator(); |
| 403 | |
| 404 | return new Iterator(){ |
| 405 | |
| 406 | |
| 407 | public boolean hasNext(){ |
| 408 | return mi.hasNext(); |
| 409 | } |
| 410 | |
| 411 | public Object next(){ |
| 412 | Entry e = (Entry) mi.next(); |
| 413 | return e.getValue(); |
| 414 | } |
| 415 | |
| 416 | public void remove(){ |
| 417 | throw new UnsupportedOperationException(); |
| 418 | } |
| 419 | }; |
| 420 | } |
| 421 | |
| 422 | public int size(){ |
| 423 | return count(); |
| 424 | } |
| 425 | }; |
| 426 | } |
| 427 | |
| 428 | /* |
| 429 | // java.util.Collection implementation |
no outgoing calls
no test coverage detected