Record Class WordFormGenerator.AffixEntry
java.lang.Object
java.lang.Record
org.apache.lucene.analysis.hunspell.WordFormGenerator.AffixEntry
- Enclosing class:
WordFormGenerator
private static record WordFormGenerator.AffixEntry(int id, char flag, AffixKind kind, String affix, String strip, AffixCondition condition)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theaffixrecord component.private final AffixConditionThe field for theconditionrecord component.private final charThe field for theflagrecord component.private final intThe field for theidrecord component.private final AffixKindThe field for thekindrecord component.private final StringThe field for thestriprecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAffixEntry(int id, char flag, AffixKind kind, String affix, String strip, AffixCondition condition) Creates an instance of aAffixEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaffix()Returns the value of theaffixrecord component.(package private) AffixedWordapply(AffixedWord stem, Dictionary dictionary) Returns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.charflag()Returns the value of theflagrecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.strip()Returns the value of thestriprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
private final int idThe field for theidrecord component. -
flag
private final char flagThe field for theflagrecord component. -
kind
The field for thekindrecord component. -
affix
The field for theaffixrecord component. -
strip
The field for thestriprecord component. -
condition
The field for theconditionrecord component.
-
-
Constructor Details
-
AffixEntry
private AffixEntry(int id, char flag, AffixKind kind, String affix, String strip, AffixCondition condition) Creates an instance of aAffixEntryrecord class.- Parameters:
id- the value for theidrecord componentflag- the value for theflagrecord componentkind- the value for thekindrecord componentaffix- the value for theaffixrecord componentstrip- the value for thestriprecord componentcondition- the value for theconditionrecord component
-
-
Method Details
-
apply
-
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 '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
flag
public char flag()Returns the value of theflagrecord component.- Returns:
- the value of the
flagrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
affix
Returns the value of theaffixrecord component.- Returns:
- the value of the
affixrecord component
-
strip
Returns the value of thestriprecord component.- Returns:
- the value of the
striprecord component
-
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-