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 theflagsrecord component.private final StringThe field for thestemrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStemWithFlags(String stem, Set<WordFormGenerator.FlagSet> flags) Creates an instance of aStemWithFlagsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.flags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.stem()Returns the value of thestemrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
stem
The field for thestemrecord component. -
flags
The field for theflagsrecord component.
-
-
Constructor Details
-
StemWithFlags
Creates an instance of aStemWithFlagsrecord class.- Parameters:
stem- the value for thestemrecord componentflags- the value for theflagsrecord 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 thestemrecord component.- Returns:
- the value of the
stemrecord component
-
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-