レコードクラス MouseEvent
java.lang.ObjectSE
java.lang.RecordSE
org.springframework.shell.jline.tui.component.view.event.MouseEvent
未使用モディファイアボタン型 [ ] [ ] [ ] [ ] 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 classstatic classstatic classstatic classコンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明final boolean他のオブジェクトがこのオブジェクトと「等しい」かどうかを示します。booleanhas(int mask) booleanfinal inthashCode()このオブジェクトのハッシュコード値を返します。booleanbooleanhasType()intmouse()mouseレコードコンポーネントの値を返します。static MouseEventof(int x, int y, int mouse) static MouseEventof(org.jline.terminal.MouseEvent event) final StringSEtoString()このレコードクラスの文字列表現を返します。intx()xレコードコンポーネントの値を返します。inty()yレコードコンポーネントの値を返します。
コンストラクターの詳細
MouseEvent
public MouseEvent(int x, int y, int mouse) MouseEventレコードクラスのインスタンスを作成します。- パラメーター:
x-xレコードコンポーネントの値y-yレコードコンポーネントの値mouse-mouseレコードコンポーネントの値
メソッドの詳細
of
of
hasType
public boolean hasType()hasButton
public boolean hasButton()hasModifier
public boolean hasModifier()has
public boolean has(int mask) toString
このレコードクラスの文字列表現を返します。表現には、クラスの名前が含まれ、その後に各レコードコンポーネントの名前と値が続きます。hashCode
public final int hashCode()このオブジェクトのハッシュコード値を返します。値は、各レコードコンポーネントのハッシュコードから導出されます。equals
他のオブジェクトがこのオブジェクトと「等しい」かどうかを示します。他のオブジェクトが同じクラスであり、すべてのレコードコンポーネントが等しい場合、オブジェクトは等しいです。このレコードクラスのすべてのコンポーネントは "==" で比較されます。x
public int x()xレコードコンポーネントの値を返します。- 戻り値:
xレコードコンポーネントの値
y
public int y()yレコードコンポーネントの値を返します。- 戻り値:
yレコードコンポーネントの値
mouse
public int mouse()mouseレコードコンポーネントの値を返します。- 戻り値:
mouseレコードコンポーネントの値