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 String
The field for theaffix
record component.private final AffixCondition
The field for thecondition
record component.private final char
The field for theflag
record component.private final int
The field for theid
record component.private final AffixKind
The field for thekind
record component.private final String
The field for thestrip
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
AffixEntry
(int id, char flag, AffixKind kind, String affix, String strip, AffixCondition condition) Creates an instance of aAffixEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionaffix()
Returns the value of theaffix
record component.(package private) AffixedWord
apply
(AffixedWord stem, Dictionary dictionary) Returns the value of thecondition
record component.final boolean
Indicates whether some other object is "equal to" this one.char
flag()
Returns the value of theflag
record component.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.kind()
Returns the value of thekind
record component.strip()
Returns the value of thestrip
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
id
private final int idThe field for theid
record component. -
flag
private final char flagThe field for theflag
record component. -
kind
The field for thekind
record component. -
affix
The field for theaffix
record component. -
strip
The field for thestrip
record component. -
condition
The field for thecondition
record component.
-
-
Constructor Details
-
AffixEntry
private AffixEntry(int id, char flag, AffixKind kind, String affix, String strip, AffixCondition condition) Creates an instance of aAffixEntry
record class.- Parameters:
id
- the value for theid
record componentflag
- the value for theflag
record componentkind
- the value for thekind
record componentaffix
- the value for theaffix
record componentstrip
- the value for thestrip
record componentcondition
- the value for thecondition
record 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 theid
record component.- Returns:
- the value of the
id
record component
-
flag
public char flag()Returns the value of theflag
record component.- Returns:
- the value of the
flag
record component
-
kind
Returns the value of thekind
record component.- Returns:
- the value of the
kind
record component
-
affix
Returns the value of theaffix
record component.- Returns:
- the value of the
affix
record component
-
strip
Returns the value of thestrip
record component.- Returns:
- the value of the
strip
record component
-
condition
Returns the value of thecondition
record component.- Returns:
- the value of the
condition
record component
-