Package opennlp.tools.util
Record Class TokenTag
java.lang.Object
java.lang.Record
opennlp.tools.util.TokenTag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the value of theadditionalDatarecord component.static TokenTag[]final booleanIndicates whether some other object is "equal to" this one.static String[]extractTags(TokenTag[] tuples) static String[]extractTokens(TokenTag[] tuples) String[]Deprecated, for removal: This API element is subject to removal in a future version.getTag()Deprecated, for removal: This API element is subject to removal in a future version.getToken()Deprecated, for removal: This API element is subject to removal in a future version.final inthashCode()Returns a hash code value for this object.tag()Returns the value of thetagrecord component.token()Returns the value of thetokenrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
TokenTag
Creates an instance of aTokenTagrecord class.- Parameters:
token- the value for thetokenrecord componenttag- the value for thetagrecord componentadditionalData- the value for theadditionalDatarecord component
-
-
Method Details
-
getToken
Deprecated, for removal: This API element is subject to removal in a future version. -
getTag
Deprecated, for removal: This API element is subject to removal in a future version. -
getAdditionalData
Deprecated, for removal: This API element is subject to removal in a future version. -
extractTokens
-
extractTags
-
create
-
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 withObjects::equals(Object,Object). -
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
additionalData
Returns the value of theadditionalDatarecord component.- Returns:
- the value of the
additionalDatarecord component
-