レコードクラス MouseHandler.MouseHandlerResult
java.lang.ObjectSE
java.lang.RecordSE
org.springframework.shell.jline.tui.component.view.event.MouseHandler.MouseHandlerResult
- レコードコンポーネント:
event- マウスイベントconsumed- イベントが消費されたかどうかを示すフラグfocus- フォーカスをリクエストしているビューcapture- イベントを捉えたビュー
- 含まれているインターフェース:
- MouseHandler
public static record MouseHandler.MouseHandlerResult(@Nullable MouseEvent event, boolean consumed, @Nullable View focus, @Nullable View capture)
extends RecordSE
MouseHandler の結果。コンストラクター概要
コンストラクターコンストラクター説明MouseHandlerResult(@Nullable MouseEvent event, boolean consumed, @Nullable View focus, @Nullable View capture) MouseHandlerResultレコードクラスのインスタンスを作成します。方法の概要
修飾子と型メソッド説明@Nullable Viewcapture()captureレコードコンポーネントの値を返します。booleanconsumed()consumedレコードコンポーネントの値を返します。final boolean他のオブジェクトがこのオブジェクトと「等しい」かどうかを示します。@Nullable MouseEventevent()eventレコードコンポーネントの値を返します。@Nullable Viewfocus()focusレコードコンポーネントの値を返します。final inthashCode()このオブジェクトのハッシュコード値を返します。final StringSEtoString()このレコードクラスの文字列表現を返します。
コンストラクターの詳細
MouseHandlerResult
public MouseHandlerResult(@Nullable MouseEvent event, boolean consumed, @Nullable View focus, @Nullable View capture) MouseHandlerResultレコードクラスのインスタンスを作成します。
メソッドの詳細
toString
このレコードクラスの文字列表現を返します。表現には、クラスの名前が含まれ、その後に各レコードコンポーネントの名前と値が続きます。hashCode
public final int hashCode()このオブジェクトのハッシュコード値を返します。値は、各レコードコンポーネントのハッシュコードから導出されます。equals
他のオブジェクトがこのオブジェクトと「等しい」かどうかを示します。他のオブジェクトが同じクラスであり、すべてのレコードコンポーネントが等しい場合、オブジェクトは等しいです。参照コンポーネントはObjects::equals(Object,Object)SE と比較されます。プリミティブコンポーネントは "==" と比較されます。event
eventレコードコンポーネントの値を返します。- 戻り値:
eventレコードコンポーネントの値
consumed
public boolean consumed()consumedレコードコンポーネントの値を返します。- 戻り値:
consumedレコードコンポーネントの値
focus
focusレコードコンポーネントの値を返します。- 戻り値:
focusレコードコンポーネントの値
capture
captureレコードコンポーネントの値を返します。- 戻り値:
captureレコードコンポーネントの値