Package opennlp.tools.formats.ad
Record Class ADSentenceStream.SentenceParser.LeafEnd
java.lang.Object
java.lang.Record
opennlp.tools.formats.ad.ADSentenceStream.SentenceParser.LeafEnd
- Record Components:
morphologyStart- The index where the morphological tag starts.close- The index of the closing parenthesis, which ends the morphological tag.lexemeStart- The index where the lexeme starts.
- Enclosing class:
ADSentenceStream.SentenceParser
private static record ADSentenceStream.SentenceParser.LeafEnd(int morphologyStart, int close, int lexemeStart)
extends Record
The end of a leaf line.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecloserecord component.private final intThe field for thelexemeStartrecord component.private final intThe field for themorphologyStartrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLeafEnd(int morphologyStart, int close, int lexemeStart) Creates an instance of aLeafEndrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintclose()Returns the value of thecloserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelexemeStartrecord component.intReturns the value of themorphologyStartrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
morphologyStart
private final int morphologyStartThe field for themorphologyStartrecord component. -
close
private final int closeThe field for thecloserecord component. -
lexemeStart
private final int lexemeStartThe field for thelexemeStartrecord component.
-
-
Constructor Details
-
LeafEnd
private LeafEnd(int morphologyStart, int close, int lexemeStart) Creates an instance of aLeafEndrecord class.- Parameters:
morphologyStart- the value for themorphologyStartrecord componentclose- the value for thecloserecord componentlexemeStart- the value for thelexemeStartrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
morphologyStart
public int morphologyStart()Returns the value of themorphologyStartrecord component.- Returns:
- the value of the
morphologyStartrecord component
-
close
public int close()Returns the value of thecloserecord component.- Returns:
- the value of the
closerecord component
-
lexemeStart
public int lexemeStart()Returns the value of thelexemeStartrecord component.- Returns:
- the value of the
lexemeStartrecord component
-