Record Class MouseEvent

java.lang.Object
java.lang.Record
org.springframework.shell.component.view.event.MouseEvent

public record MouseEvent(int x, int y, int mouse) extends Record
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 Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
    static class 
     
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MouseEvent(int x, int y, int mouse)
    Creates an instance of a MouseEvent record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    has(int mask)
     
    boolean
     
    final int
    Returns a hash code value for this object.
    boolean
     
    boolean
     
    int
    Returns the value of the mouse record component.
    static MouseEvent
    of(int x, int y, int mouse)
     
    static MouseEvent
    of(org.jline.terminal.MouseEvent event)
     
    final String
    Returns a string representation of this record class.
    int
    x()
    Returns the value of the x record component.
    int
    y()
    Returns the value of the y record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MouseEvent

      public MouseEvent(int x, int y, int mouse)
      Creates an instance of a MouseEvent record class.
      Parameters:
      x - the value for the x record component
      y - the value for the y record component
      mouse - the value for the mouse record component
  • Method Details

    • of

      public static MouseEvent of(int x, int y, int mouse)
    • of

      public static MouseEvent of(org.jline.terminal.MouseEvent event)
    • hasType

      public boolean hasType()
    • hasButton

      public boolean hasButton()
    • hasModifier

      public boolean hasModifier()
    • has

      public boolean has(int mask)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • x

      public int x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      public int y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • mouse

      public int mouse()
      Returns the value of the mouse record component.
      Returns:
      the value of the mouse record component