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 Dictionary
The field for thedictionary
record component.private final CharHashSet
The field for theflags
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
FlagSet
(CharHashSet flags, Dictionary dictionary) Creates an instance of aFlagSet
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedictionary
record component.final boolean
Indicates whether some other object is "equal to" this one.flags()
Returns the value of theflags
record component.(package private) static CharHashSet
flatten
(Set<WordFormGenerator.FlagSet> flagSets) final int
hashCode()
Returns a hash code value for this object.toString()
Returns a string representation of this record class.
-
Field Details
-
flags
The field for theflags
record component. -
dictionary
The field for thedictionary
record component.
-
-
Constructor Details
-
FlagSet
Creates an instance of aFlagSet
record class.- Parameters:
flags
- the value for theflags
record componentdictionary
- the value for thedictionary
record 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 theflags
record component.- Returns:
- the value of the
flags
record component
-
dictionary
Returns the value of thedictionary
record component.- Returns:
- the value of the
dictionary
record component
-