Record Class InputMapStore.ShortcutKey
java.lang.Object
java.lang.Record
com.vaadin.swingbridge.surrogates.internal.InputMapStore.ShortcutKey
- Enclosing class:
InputMapStore
-
Constructor Summary
ConstructorsConstructorDescriptionShortcutKey(int condition, KeyStroke keyStroke) Creates an instance of aShortcutKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekeyStrokerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShortcutKey
Creates an instance of aShortcutKeyrecord class.- Parameters:
condition- the value for theconditionrecord componentkeyStroke- the value for thekeyStrokerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
condition
public int condition()Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
keyStroke
Returns the value of thekeyStrokerecord component.- Returns:
- the value of the
keyStrokerecord component
-