Package opennlp.tools.formats.ad
Record Class ADSentenceStream.SentenceParser.Tag
java.lang.Object
java.lang.Record
opennlp.tools.formats.ad.ADSentenceStream.SentenceParser.Tag
- Record Components:
start- The index where the tag starts, which is the length of the level prefix.separator- The index of the separator between the two parts of the tag.end- The index after the tag.
- Enclosing class:
ADSentenceStream.SentenceParser
private static record ADSentenceStream.SentenceParser.Tag(int start, int separator, int end)
extends Record
A tag at the start of a line.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTag(int start, int separator, int end) Creates an instance of aTagrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintend()Returns the value of theendrecord 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 theseparatorrecord component.intstart()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
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 '=='. -
start
public int start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
separator
public int separator()Returns the value of theseparatorrecord component.- Returns:
- the value of the
separatorrecord component
-
end
public int end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-