Package opennlp.dl
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.intDeprecated, for removal: This API element is subject to removal in a future version.intgetIndex()Deprecated, for removal: This API element is subject to removal in a future version.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
-
getIndex
Deprecated, for removal: This API element is subject to removal in a future version. -
getCharacterEnd
Deprecated, for removal: This API element is subject to removal in a future version. -
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 '=='. -
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
-