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 int
The field for thekeystrokeIndex
record component.private final int
The field for thekeystrokeLen
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MatchedKeystroke
(int keystrokeLen, int keystrokeIndex) Creates an instance of aMatchedKeystroke
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 thekeystrokeIndex
record component.int
Returns the value of thekeystrokeLen
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
keystrokeLen
private final int keystrokeLenThe field for thekeystrokeLen
record component. -
keystrokeIndex
private final int keystrokeIndexThe field for thekeystrokeIndex
record component.
-
-
Constructor Details
-
MatchedKeystroke
private MatchedKeystroke(int keystrokeLen, int keystrokeIndex) Creates an instance of aMatchedKeystroke
record class.- Parameters:
keystrokeLen
- the value for thekeystrokeLen
record componentkeystrokeIndex
- the value for thekeystrokeIndex
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. All components in this record class are compared with '=='. -
keystrokeLen
public int keystrokeLen()Returns the value of thekeystrokeLen
record component.- Returns:
- the value of the
keystrokeLen
record component
-
keystrokeIndex
public int keystrokeIndex()Returns the value of thekeystrokeIndex
record component.- Returns:
- the value of the
keystrokeIndex
record component
-