Record Class KatakanaRomanizer.MatchedKeystroke
java.lang.Object
java.lang.Record
org.apache.lucene.analysis.ja.completion.KatakanaRomanizer.MatchedKeystroke
- Enclosing class:
KatakanaRomanizer
private static record KatakanaRomanizer.MatchedKeystroke(int keystrokeLen, int keystrokeIndex)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thekeystrokeIndexrecord component.private final intThe field for thekeystrokeLenrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMatchedKeystroke(int keystrokeLen, int keystrokeIndex) Creates an instance of aMatchedKeystrokerecord 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 thekeystrokeIndexrecord component.intReturns the value of thekeystrokeLenrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
keystrokeLen
private final int keystrokeLenThe field for thekeystrokeLenrecord component. -
keystrokeIndex
private final int keystrokeIndexThe field for thekeystrokeIndexrecord component.
-
-
Constructor Details
-
MatchedKeystroke
private MatchedKeystroke(int keystrokeLen, int keystrokeIndex) Creates an instance of aMatchedKeystrokerecord class.- Parameters:
keystrokeLen- the value for thekeystrokeLenrecord componentkeystrokeIndex- the value for thekeystrokeIndexrecord 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 with '=='. -
keystrokeLen
public int keystrokeLen()Returns the value of thekeystrokeLenrecord component.- Returns:
- the value of the
keystrokeLenrecord component
-
keystrokeIndex
public int keystrokeIndex()Returns the value of thekeystrokeIndexrecord component.- Returns:
- the value of the
keystrokeIndexrecord component
-