org.apache.ctakes.dictionary.lookup.ae
Class BaseLookupConsumerImpl.LookupHitKey

java.lang.Object
  extended by org.apache.ctakes.dictionary.lookup.ae.BaseLookupConsumerImpl.LookupHitKey
Enclosing class:
BaseLookupConsumerImpl

protected static class BaseLookupConsumerImpl.LookupHitKey
extends java.lang.Object

Using a String as a HashMap Key can be slow as the hashCode is computed per character with each call - ditto for equals


Field Summary
protected  int __end
           
protected  int __start
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__start

protected final int __start

__end

protected final int __end
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object