レコードクラス RegisteredBean.InstantiationDescriptor

java.lang.ObjectSE
java.lang.RecordSE
org.springframework.beans.factory.support.RegisteredBean.InstantiationDescriptor
レコードコンポーネント:
executable - 呼び出す ExecutableSEConstructorSE または MethodSE
targetClass - 実行可能ファイルのターゲット ClassSE
含まれているクラス:
RegisteredBean

public static record RegisteredBean.InstantiationDescriptor(ExecutableSE executable, ClassSE<?> targetClass) extends RecordSE
Bean をインスタンス化する方法の記述子。targetClass は通常、executable の宣言クラスですが (コンストラクターまたはローカルに宣言されたファクトリメソッドの場合)、実際の具象クラスを保持する必要がある場合もあります (継承されたファクトリメソッドの場合など)。
導入:
6.1.7
  • コンストラクターの詳細

    • InstantiationDescriptor

      public InstantiationDescriptor(ExecutableSE executable)
    • InstantiationDescriptor

      public InstantiationDescriptor(ExecutableSE executable, ClassSE<?> targetClass)
      InstantiationDescriptor レコードクラスのインスタンスを作成します。
      パラメーター:
      executable - executable レコードコンポーネントの値
      targetClass - targetClass レコードコンポーネントの値
  • メソッドの詳細

    • toString

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

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

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

      public ExecutableSE executable()
      executable レコードコンポーネントの値を返します。
      戻り値:
      executable レコードコンポーネントの値
    • targetClass

      public ClassSE<?> targetClass()
      targetClass レコードコンポーネントの値を返します。
      戻り値:
      targetClass レコードコンポーネントの値