Record Class WordFormGenerator.FlagSet
java.lang.Object
java.lang.Record
org.apache.lucene.analysis.hunspell.WordFormGenerator.FlagSet
- Enclosing class:
WordFormGenerator
private static record WordFormGenerator.FlagSet(CharHashSet flags, Dictionary dictionary)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DictionaryThe field for thedictionaryrecord component.private final CharHashSetThe field for theflagsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateFlagSet(CharHashSet flags, Dictionary dictionary) Creates an instance of aFlagSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedictionaryrecord component.final booleanIndicates whether some other object is "equal to" this one.flags()Returns the value of theflagsrecord component.(package private) static CharHashSetflatten(Set<WordFormGenerator.FlagSet> flagSets) final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Field Details
-
flags
The field for theflagsrecord component. -
dictionary
The field for thedictionaryrecord component.
-
-
Constructor Details
-
FlagSet
Creates an instance of aFlagSetrecord class.- Parameters:
flags- the value for theflagsrecord componentdictionary- the value for thedictionaryrecord component
-
-
Method Details
-
flatten
-
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). -
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
dictionary
Returns the value of thedictionaryrecord component.- Returns:
- the value of the
dictionaryrecord component
-