gate.annotation
Class AnnotationSetImpl.VerboseHashMap

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

public class AnnotationSetImpl.VerboseHashMap
extends HashMap

Class used for the indexById structure. This is a HashMap that fires events when elements are removed.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.HashMap
 
Nested classes inherited from class java.util.AbstractMap
 
Field Summary
private  AnnotationSetImpl owner
          The annotation set this maps is part of.
(package private) static long serialVersionUID
           
 
Fields inherited from class java.util.HashMap
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
(package private) AnnotationSetImpl.VerboseHashMap()
           
 
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
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

owner

private transient AnnotationSetImpl owner
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.

Constructor Detail

AnnotationSetImpl.VerboseHashMap

AnnotationSetImpl.VerboseHashMap()
Method Detail

remove

public Object remove(Object key)

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.