1 |
/* IdentityHashMap.java -- a class providing a hashtable data structure, |
/* IdentityHashMap.java -- a class providing a hashtable data structure, |
2 |
mapping Object --> Object, which uses object identity for hashing. |
mapping Object --> Object, which uses object identity for hashing. |
3 |
Copyright (C) 2001, 2002 Free Software Foundation, Inc. |
Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
6 |
|
|
679 |
* @author Tom Tromey <tromey@redhat.com> |
* @author Tom Tromey <tromey@redhat.com> |
680 |
* @author Eric Blake <ebb9@email.byu.edu> |
* @author Eric Blake <ebb9@email.byu.edu> |
681 |
*/ |
*/ |
682 |
private final class IdentityIterator implements Iterator |
private class IdentityIterator implements Iterator |
683 |
{ |
{ |
684 |
/** |
/** |
685 |
* The type of this Iterator: {@link #KEYS}, {@link #VALUES}, |
* The type of this Iterator: {@link #KEYS}, {@link #VALUES}, |
878 |
* @throws ConcurrentModificationException if the entry was invalidated |
* @throws ConcurrentModificationException if the entry was invalidated |
879 |
* by modifying the Map or calling Iterator.remove() |
* by modifying the Map or calling Iterator.remove() |
880 |
*/ |
*/ |
881 |
public final String toString() |
public String toString() |
882 |
{ |
{ |
883 |
if (knownMod != modCount || table[loc] == tombstone) |
if (knownMod != modCount || table[loc] == tombstone) |
884 |
throw new ConcurrentModificationException(); |
throw new ConcurrentModificationException(); |