Package opennlp.tools.util.normalizer
Record Class UnicodeEmojiSequences.Candidate
java.lang.Object
java.lang.Record
opennlp.tools.util.normalizer.UnicodeEmojiSequences.Candidate
- Record Components:
end- The index after the candidate.valid-trueif the candidate consists of complete sequences only and is to be replaced;falseif it holds a stray component or an incomplete sequence and is to be kept as it is.
- Enclosing class:
UnicodeEmojiSequences
What
UnicodeEmojiSequences.candidateAt(CharSequence, int) found at a position.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCandidate(int end, boolean valid) Creates an instance of aCandidaterecord 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.final StringtoString()Returns a string representation of this record class.booleanvalid()Returns the value of thevalidrecord component.
-
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 '=='. -
end
public int end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
valid
public boolean valid()Returns the value of thevalidrecord component.- Returns:
- the value of the
validrecord component
-