Record Class SpanEnd
java.lang.Object
java.lang.Record
opennlp.dl.SpanEnd
-
Constructor Summary
ConstructorsConstructorDescriptionSpanEnd(int index, int characterEnd) Creates an instance of aSpanEndrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecharacterEndrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
SpanEnd
public SpanEnd(int index, int characterEnd) Creates an instance of aSpanEndrecord class.- Parameters:
index- the value for theindexrecord componentcharacterEnd- the value for thecharacterEndrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
characterEnd
public int characterEnd()Returns the value of thecharacterEndrecord component.- Returns:
- the value of the
characterEndrecord component
-