public class LocationOccurrence extends Object
| Constructor and Description |
|---|
LocationOccurrence(String text,
int position)
Sole construction for
LocationOccurrence class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Tests equivalence based on name and position.
|
int |
getPosition()
Get the position in the text where the location name starts.
|
String |
getText()
Get the text of the location name.
|
int |
hashCode()
Required for hashing.
|
String |
toString() |
public LocationOccurrence(String text, int position)
LocationOccurrence class.
Represents a location name found in a document.text - text of the location nameposition - where it was foundpublic String getText()
public int getPosition()
public boolean equals(Object o)
Copyright © 2012–2014 Berico Technologies. All rights reserved.