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 int
The field for theoverGenerated
record component.private final int
The field for thepotentialCoverage
record component.private final Map
<String, Set<WordFormGenerator.FlagSet>> The field for thestemToFlags
record component.private final int
The field for theunderGenerated
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
State
(Map<String, Set<WordFormGenerator.FlagSet>> stemToFlags, int underGenerated, int overGenerated, int potentialCoverage) Creates an instance of aState
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theoverGenerated
record component.int
Returns the value of thepotentialCoverage
record component.Returns the value of thestemToFlags
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of theunderGenerated
record component.
-
Field Details
-
stemToFlags
The field for thestemToFlags
record component. -
underGenerated
private final int underGeneratedThe field for theunderGenerated
record component. -
overGenerated
private final int overGeneratedThe field for theoverGenerated
record component. -
potentialCoverage
private final int potentialCoverageThe field for thepotentialCoverage
record component.
-
-
Constructor Details
-
State
private State(Map<String, Set<WordFormGenerator.FlagSet>> stemToFlags, int underGenerated, int overGenerated, int potentialCoverage) Creates an instance of aState
record class.- Parameters:
stemToFlags
- the value for thestemToFlags
record componentunderGenerated
- the value for theunderGenerated
record componentoverGenerated
- the value for theoverGenerated
record componentpotentialCoverage
- the value for thepotentialCoverage
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
stemToFlags
Returns the value of thestemToFlags
record component.- Returns:
- the value of the
stemToFlags
record component
-
underGenerated
public int underGenerated()Returns the value of theunderGenerated
record component.- Returns:
- the value of the
underGenerated
record component
-
overGenerated
public int overGenerated()Returns the value of theoverGenerated
record component.- Returns:
- the value of the
overGenerated
record component
-
potentialCoverage
public int potentialCoverage()Returns the value of thepotentialCoverage
record component.- Returns:
- the value of the
potentialCoverage
record component
-