Record Class MouseEvent
java.lang.Object
java.lang.Record
org.springframework.shell.component.view.event.MouseEvent
unused modifier button type
[ ] [ ] [ ] [ ]
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 ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionMouseEvent(int x, int y, int mouse) Creates an instance of aMouseEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanhas(int mask) booleanfinal inthashCode()Returns a hash code value for this object.booleanbooleanhasType()intmouse()Returns the value of themouserecord component.static MouseEventof(int x, int y, int mouse) static MouseEventof(org.jline.terminal.MouseEvent event) final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Constructor Details
-
MouseEvent
public MouseEvent(int x, int y, int mouse) Creates an instance of aMouseEventrecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentmouse- the value for themouserecord component
-
-
Method Details
-
of
-
of
-
hasType
public boolean hasType() -
hasButton
public boolean hasButton() -
hasModifier
public boolean hasModifier() -
has
public boolean has(int mask) -
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 '=='. -
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
mouse
public int mouse()Returns the value of themouserecord component.- Returns:
- the value of the
mouserecord component
-