Package emi.dev.emi.emi.input
Record Class EmiBind.ModifiedKey
java.lang.Object
java.lang.Record
emi.dev.emi.emi.input.EmiBind.ModifiedKey
- Enclosing class:
- EmiBind
-
Constructor Summary
ConstructorsConstructorDescriptionModifiedKey(InputUtil.Key key, int modifiers) Creates an instance of aModifiedKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getKeyText(Formatting formatting) final inthashCode()Returns a hash code value for this object.booleankey()Returns the value of thekeyrecord component.intReturns the value of themodifiersrecord component.intstatic EmiBind.ModifiedKeyof(int code, int modifiers) toName()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModifiedKey
Creates an instance of aModifiedKeyrecord class.- Parameters:
key- the value for thekeyrecord componentmodifiers- the value for themodifiersrecord component
-
-
Method Details
-
of
-
toName
-
modifiersToMatch
public int modifiersToMatch() -
isUnbound
public boolean isUnbound() -
getKeyText
-
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
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
modifiers
public int modifiers()Returns the value of themodifiersrecord component.- Returns:
- the value of the
modifiersrecord component
-