Package opennlp.tools.util.normalizer
Record Class UnicodeEmojiSequences.Walk
java.lang.Object
java.lang.Record
opennlp.tools.util.normalizer.UnicodeEmojiSequences.Walk
- Record Components:
matchEnd- The index after the longest complete sequence, or-1if none.prefixEnd- The index after the longest prefix of any sequence.
- Enclosing class:
UnicodeEmojiSequences
The result of one trie walk.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateWalk(int matchEnd, int prefixEnd) Creates an instance of aWalkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmatchEnd()Returns the value of thematchEndrecord component.intReturns the value of theprefixEndrecord 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 '=='. -
matchEnd
public int matchEnd()Returns the value of thematchEndrecord component.- Returns:
- the value of the
matchEndrecord component
-
prefixEnd
public int prefixEnd()Returns the value of theprefixEndrecord component.- Returns:
- the value of the
prefixEndrecord component
-