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 CombineSuggestionThe field for thecombineSuggestionrecord component.private final intThe field for thenumCombinationsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCombineSuggestionWrapper(CombineSuggestion combineSuggestion, int numCombinations) Creates an instance of aCombineSuggestionWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecombineSuggestionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thenumCombinationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
combineSuggestion
The field for thecombineSuggestionrecord component. -
numCombinations
private final int numCombinationsThe field for thenumCombinationsrecord component.
-
-
Constructor Details
-
CombineSuggestionWrapper
Creates an instance of aCombineSuggestionWrapperrecord class.- Parameters:
combineSuggestion- the value for thecombineSuggestionrecord componentnumCombinations- the value for thenumCombinationsrecord 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 thecombineSuggestionrecord component.- Returns:
- the value of the
combineSuggestionrecord component
-
numCombinations
public int numCombinations()Returns the value of thenumCombinationsrecord component.- Returns:
- the value of the
numCombinationsrecord component
-