レコードクラス MouseEvent

java.lang.ObjectSE
java.lang.RecordSE
org.springframework.shell.jline.tui.component.view.event.MouseEvent

public record MouseEvent(int x, int y, int mouse) extends RecordSE
未使用モディファイアボタン型 [ ] [ ] [ ] [ ] 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
  • ネストされたクラスの要約

    ネストされたクラス
    修飾子と型
    クラス
    説明
    static class
    static class
    static class
    static class
  • コンストラクターの概要

    コンストラクター
    コンストラクター
    説明
    MouseEvent(int x, int y, int mouse)
    MouseEvent レコードクラスのインスタンスを作成します。
  • 方法の概要

    修飾子と型
    メソッド
    説明
    final boolean
    他のオブジェクトがこのオブジェクトと「等しい」かどうかを示します。
    boolean
    has(int mask)
    boolean
    final int
    このオブジェクトのハッシュコード値を返します。
    boolean
    boolean
    int
    mouse レコードコンポーネントの値を返します。
    static MouseEvent
    of(int x, int y, int mouse)
    static MouseEvent
    of(org.jline.terminal.MouseEvent event)
    final StringSE
    このレコードクラスの文字列表現を返します。
    int
    x()
    x レコードコンポーネントの値を返します。
    int
    y()
    y レコードコンポーネントの値を返します。

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, finalize, getClass, notify, notifyAll, wait, waitSE, waitSE
  • コンストラクターの詳細

    • MouseEvent

      public MouseEvent(int x, int y, int mouse)
      MouseEvent レコードクラスのインスタンスを作成します。
      パラメーター:
      x - x レコードコンポーネントの値
      y - y レコードコンポーネントの値
      mouse - mouse レコードコンポーネントの値
  • メソッドの詳細

    • 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 StringSE toString()
      このレコードクラスの文字列表現を返します。表現には、クラスの名前が含まれ、その後に各レコードコンポーネントの名前と値が続きます。
      次で指定:
      クラス RecordSEtoString 
      戻り値:
      このオブジェクトの文字列表現
    • hashCode

      public final int hashCode()
      このオブジェクトのハッシュコード値を返します。値は、各レコードコンポーネントのハッシュコードから導出されます。
      次で指定:
      クラス RecordSEhashCode 
      戻り値:
      このオブジェクトのハッシュコード値
    • equals

      public final boolean equals(ObjectSE o)
      他のオブジェクトがこのオブジェクトと「等しい」かどうかを示します。他のオブジェクトが同じクラスであり、すべてのレコードコンポーネントが等しい場合、オブジェクトは等しいです。このレコードクラスのすべてのコンポーネントは "==" で比較されます。
      次で指定:
      クラス RecordSEequalsSE 
      パラメーター:
      o - 比較するオブジェクト
      戻り値:
      このオブジェクトが o 引数と同じ場合は true。それ以外の場合は false
    • x

      public int x()
      x レコードコンポーネントの値を返します。
      戻り値:
      x レコードコンポーネントの値
    • y

      public int y()
      y レコードコンポーネントの値を返します。
      戻り値:
      y レコードコンポーネントの値
    • mouse

      public int mouse()
      mouse レコードコンポーネントの値を返します。
      戻り値:
      mouse レコードコンポーネントの値