com.bericotech.clavin.extractor
Class LocationOccurrence

java.lang.Object
  extended by com.bericotech.clavin.extractor.LocationOccurrence

public class LocationOccurrence
extends Object

Container class representing a location name found in a document. Stores the text of the location name itself, as well as its position in the text in which it was found (measured in UTF-16 code points from the start of the document).


Field Summary
 String name
           
 int position
           
 
Constructor Summary
LocationOccurrence(String text, int position)
          Sole construction for LocationOccurrence class.
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final String name

position

public final int position
Constructor Detail

LocationOccurrence

public LocationOccurrence(String text,
                          int position)
Sole construction for LocationOccurrence class. Represents a location name found in a document.

Parameters:
text - text of the location name
position - where it was found
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013 Berico Technologies. All rights reserved.