/[classpath]/classpath/java/util/IdentityHashMap.java
ViewVC logotype

Diff of /classpath/java/util/IdentityHashMap.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by uid67440, Fri Dec 26 22:49:19 2003 UTC revision 1.15 by mkoch, Fri Oct 22 17:15:57 2004 UTC
# Line 1  Line 1 
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    
# Line 679  public class IdentityHashMap extends Abs Line 679  public class IdentityHashMap extends Abs
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},
# Line 878  public class IdentityHashMap extends Abs Line 878  public class IdentityHashMap extends Abs
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();

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26