Module org.apache.lucene.suggest
Package org.apache.lucene.search.spell
Record Class WordBreakSpellChecker.CombineSuggestionWrapper
java.lang.Object
java.lang.Record
org.apache.lucene.search.spell.WordBreakSpellChecker.CombineSuggestionWrapper
- Enclosing class:
WordBreakSpellChecker
private static record WordBreakSpellChecker.CombineSuggestionWrapper(CombineSuggestion combineSuggestion, int numCombinations)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CombineSuggestion
The field for thecombineSuggestion
record component.private final int
The field for thenumCombinations
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
CombineSuggestionWrapper
(CombineSuggestion combineSuggestion, int numCombinations) Creates an instance of aCombineSuggestionWrapper
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecombineSuggestion
record component.final 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 thenumCombinations
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
combineSuggestion
The field for thecombineSuggestion
record component. -
numCombinations
private final int numCombinationsThe field for thenumCombinations
record component.
-
-
Constructor Details
-
CombineSuggestionWrapper
Creates an instance of aCombineSuggestionWrapper
record class.- Parameters:
combineSuggestion
- the value for thecombineSuggestion
record componentnumCombinations
- the value for thenumCombinations
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 '=='. -
combineSuggestion
Returns the value of thecombineSuggestion
record component.- Returns:
- the value of the
combineSuggestion
record component
-
numCombinations
public int numCombinations()Returns the value of thenumCombinations
record component.- Returns:
- the value of the
numCombinations
record component
-