Record Class WordFormGenerator.State
java.lang.Object
java.lang.Record
org.apache.lucene.analysis.hunspell.WordFormGenerator.State
- Enclosing class:
WordFormGenerator
private static record WordFormGenerator.State(Map<String,Set<WordFormGenerator.FlagSet>> stemToFlags, int underGenerated, int overGenerated, int potentialCoverage)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theoverGeneratedrecord component.private final intThe field for thepotentialCoveragerecord component.private final Map<String, Set<WordFormGenerator.FlagSet>> The field for thestemToFlagsrecord component.private final intThe field for theunderGeneratedrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateState(Map<String, Set<WordFormGenerator.FlagSet>> stemToFlags, int underGenerated, int overGenerated, int potentialCoverage) Creates an instance of aStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theoverGeneratedrecord component.intReturns the value of thepotentialCoveragerecord component.Returns the value of thestemToFlagsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theunderGeneratedrecord component.
-
Field Details
-
stemToFlags
The field for thestemToFlagsrecord component. -
underGenerated
private final int underGeneratedThe field for theunderGeneratedrecord component. -
overGenerated
private final int overGeneratedThe field for theoverGeneratedrecord component. -
potentialCoverage
private final int potentialCoverageThe field for thepotentialCoveragerecord component.
-
-
Constructor Details
-
State
private State(Map<String, Set<WordFormGenerator.FlagSet>> stemToFlags, int underGenerated, int overGenerated, int potentialCoverage) Creates an instance of aStaterecord class.- Parameters:
stemToFlags- the value for thestemToFlagsrecord componentunderGenerated- the value for theunderGeneratedrecord componentoverGenerated- the value for theoverGeneratedrecord componentpotentialCoverage- the value for thepotentialCoveragerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
stemToFlags
Returns the value of thestemToFlagsrecord component.- Returns:
- the value of the
stemToFlagsrecord component
-
underGenerated
public int underGenerated()Returns the value of theunderGeneratedrecord component.- Returns:
- the value of the
underGeneratedrecord component
-
overGenerated
public int overGenerated()Returns the value of theoverGeneratedrecord component.- Returns:
- the value of the
overGeneratedrecord component
-
potentialCoverage
public int potentialCoverage()Returns the value of thepotentialCoveragerecord component.- Returns:
- the value of the
potentialCoveragerecord component
-