Package opennlp.tools.stemmer.hunspell
Record Class HunspellStemmer.CompoundPart
java.lang.Object
java.lang.Record
opennlp.tools.stemmer.hunspell.HunspellStemmer.CompoundPart
- Record Components:
surface- The part as written.root- The entry spelling.flags- The selected homonym's flags.affixes- The rules in application order.stems- The morphology-aware stems.
- Enclosing class:
HunspellStemmer
private static record HunspellStemmer.CompoundPart(String surface, String root, int[] flags, List<HunspellDictionary.Affix> affixes, List<String> stems)
extends Record
One selected compound-part reading.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<HunspellDictionary.Affix> The field for theaffixesrecord component.private final int[]The field for theflagsrecord component.private final StringThe field for therootrecord component.The field for thestemsrecord component.private final StringThe field for thesurfacerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCompoundPart(String surface, String root, int[] flags, List<HunspellDictionary.Affix> affixes, List<String> stems) Creates an instance of aCompoundPartrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaffixes()Returns the value of theaffixesrecord component.final booleanIndicates whether some other object is "equal to" this one.int[]flags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.root()Returns the value of therootrecord component.stems()Returns the value of thestemsrecord component.surface()Returns the value of thesurfacerecord 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 withObjects::equals(Object,Object). -
surface
Returns the value of thesurfacerecord component.- Returns:
- the value of the
surfacerecord component
-
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
flags
public int[] flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
affixes
Returns the value of theaffixesrecord component.- Returns:
- the value of the
affixesrecord component
-
stems
Returns the value of thestemsrecord component.- Returns:
- the value of the
stemsrecord component
-