GATE
Version 3.1-2270

gate.annotation
Class AnnotationSetImpl.VerboseHashMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by java.util.HashMap
          extended by gate.annotation.AnnotationSetImpl.VerboseHashMap
All Implemented Interfaces:
Serializable, Cloneable, Map
Enclosing class:
AnnotationSetImpl

public class AnnotationSetImpl.VerboseHashMap
extends HashMap

This is a HashMap that fires events when elements are removed. This class has been used in a previous version for the indexById structure which now uses a simple HashMap. This class is kept here for backwards compatibility of old serial datastores.

See Also:
Serialized Form

Method Summary
 Object remove(Object key)
           
 void setOwner(AnnotationSetImpl newOwner)
          Sets the annotation set this maps is part of.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Method Detail

remove

public Object remove(Object key)
Specified by:
remove in interface Map
Overrides:
remove in class HashMap

setOwner

public void setOwner(AnnotationSetImpl newOwner)
Sets the annotation set this maps is part of. This is an ugly hack in order to fix a bug: database annotation sets didn't fire annotation removed events.


GATE
Version 3.1-2270