Record Class WordFormGenerator.WordCompressor.StemWithFlags
java.lang.Object
java.lang.Record
org.apache.lucene.analysis.hunspell.WordFormGenerator.WordCompressor.StemWithFlags
- Enclosing class:
WordFormGenerator.WordCompressor
private static record WordFormGenerator.WordCompressor.StemWithFlags(String stem, Set<WordFormGenerator.FlagSet> flags)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set
<WordFormGenerator.FlagSet> The field for theflags
record component.private final String
The field for thestem
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
StemWithFlags
(String stem, Set<WordFormGenerator.FlagSet> flags) Creates an instance of aStemWithFlags
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.flags()
Returns the value of theflags
record component.final int
hashCode()
Returns a hash code value for this object.stem()
Returns the value of thestem
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
stem
The field for thestem
record component. -
flags
The field for theflags
record component.
-
-
Constructor Details
-
StemWithFlags
Creates an instance of aStemWithFlags
record class.- Parameters:
stem
- the value for thestem
record componentflags
- the value for theflags
record component
-
-
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)
. -
stem
Returns the value of thestem
record component.- Returns:
- the value of the
stem
record component
-
flags
Returns the value of theflags
record component.- Returns:
- the value of the
flags
record component
-