org.apache.ctakes.dictionary.lookup.vo
Class LookupHit

java.lang.Object
  extended by org.apache.ctakes.dictionary.lookup.vo.LookupHit

@Immutable
public final class LookupHit
extends Object

Represents a single hit found by a lookup algorithm. Meta data returned by the Dictionary is also encapsulated here as well.

Author:
Mayo Clinic

Constructor Summary
LookupHit(MetaDataHit mdh, int startOffset, int endOffset)
           
 
Method Summary
 boolean equals(Object obj)
          Override default equals method.
 MetaDataHit getDictMetaDataHit()
           
 int getEndOffset()
           
 int getStartOffset()
           
 String getUniqueKey()
          Generates a unique key based on this objects values.
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupHit

public LookupHit(MetaDataHit mdh,
                 int startOffset,
                 int endOffset)
Method Detail

getEndOffset

public int getEndOffset()

getDictMetaDataHit

public MetaDataHit getDictMetaDataHit()

getStartOffset

public int getStartOffset()

equals

public boolean equals(Object obj)
Override default equals method. Two LookupHit objects are equal if their offsets match and their MetaDataHit objects are equal.

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

getUniqueKey

public String getUniqueKey()
Generates a unique key based on this objects values.

Returns:


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.