Record Class Modifiers
java.lang.Object
java.lang.Record
dev.engine.core.input.Modifiers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanalt()intbits()Returns the value of thebitsrecord component.booleanctrl()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanshift()booleansuperKey()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Modifiers
public Modifiers(int bits) Creates an instance of aModifiersrecord class.- Parameters:
bits- the value for thebitsrecord component
-
-
Method Details
-
shift
public boolean shift() -
ctrl
public boolean ctrl() -
alt
public boolean alt() -
superKey
public boolean superKey() -
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
bits
public int bits()Returns the value of thebitsrecord component.- Returns:
- the value of the
bitsrecord component
-