Record Class KeyEvent
java.lang.Object
java.lang.Record
org.springframework.shell.component.view.event.KeyEvent
mask special keys unicode keys ascii keys
[ ] [ ] [ ] [ ]
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.intbooleanhasCtrl()final inthashCode()Returns a hash code value for this object.booleanisKey()booleanisKey(int match) intkey()Returns the value of thekeyrecord component.static KeyEventof(int key) static KeyEventfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyEvent
Creates an instance of aKeyEventrecord class.- Parameters:
key- the value for thekeyrecord componentdata- the value for thedatarecord component
-
-
Method Details
-
of
-
of
-
hasCtrl
public boolean hasCtrl() -
getPlainKey
public int getPlainKey() -
isKey
public boolean isKey(int match) -
isKey
public boolean isKey() -
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 '=='. -
key
public int key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-