public class TranslationWithPosition extends Object implements Serializable
Constructor and Description |
---|
TranslationWithPosition()
Constructor.
|
TranslationWithPosition(Translation translation,
int startIndex,
int numberOfMorphemes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object value) |
int |
getNumberOfMorphemes()
Returns numberOfMorphemes.
|
int |
getStartIndex()
Returns startIndex.
|
Translation |
getTranslation()
Returns translation.
|
int |
hashCode() |
void |
setNumberOfMorphemes(int numberOfMorphemes)
Sets numberOfMorphemes.
|
void |
setStartIndex(int startIndex)
Sets startIndex.
|
void |
setTranslation(Translation translation)
Sets translation.
|
String |
toString() |
public TranslationWithPosition()
public TranslationWithPosition(Translation translation, int startIndex, int numberOfMorphemes)
translation
- Bilingual translationstartIndex
- Starting index of array of matching morphemes in bilingual translationnumberOfMorphemes
- Number of morphemes matching in the bilingual translationpublic int getNumberOfMorphemes()
public int getStartIndex()
public Translation getTranslation()
public void setNumberOfMorphemes(int numberOfMorphemes)
public void setStartIndex(int startIndex)
public void setTranslation(Translation translation)