Package opennlp.tools.stemmer.hunspell
Record Class HunspellConversion.Rule
java.lang.Object
java.lang.Record
opennlp.tools.stemmer.hunspell.HunspellConversion.Rule
- Record Components:
from- The input text.to- The output text.initial- Whether the match requires the start of the input.terminal- Whether the match requires the end of the input.
- Enclosing class:
HunspellConversion
private static record HunspellConversion.Rule(String from, String to, boolean initial, boolean terminal)
extends Record
A conversion with optional word-boundary requirements.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.booleaninitial()Returns the value of theinitialrecord component.booleanterminal()Returns the value of theterminalrecord component.to()Returns the value of thetorecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
initial
public boolean initial()Returns the value of theinitialrecord component.- Returns:
- the value of the
initialrecord component
-
terminal
public boolean terminal()Returns the value of theterminalrecord component.- Returns:
- the value of the
terminalrecord component
-