org.apache.ctakes.dictionary.lookup.vo
Class LookupHit
java.lang.Object
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
LookupHit
public LookupHit(MetaDataHit mdh,
int startOffset,
int endOffset)
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.