インターフェース Example<T>

型パラメーター:
T - プローブの型。

public interface Example<T>
例示による問い合わせ(QBE)のサポート。Example は probe を使用して例を定義します。マッチングオプションと型安全ティは、ExampleMatcher を使用して調整できます。
導入:
1.12
作成者:
Christoph Strobl, Mark Paluch, Oliver Gierke
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    ExampleMatcher を使用します。
    使用例を取得します。
    default ClassSE<T>
    使用されるプローブの実際の型を取得します。
    static <T> Example<T>
    of(T probe)
    デフォルトですべての null 以外のプロパティを含む新しい Example を作成します。
    static <T> Example<T>
    of(T probe, ExampleMatcher matcher)
    指定された ExampleMatcher を使用して新しい Example を作成します。
  • メソッドの詳細

    • of

      static <T> Example<T> of(T probe)
      デフォルトですべての null 以外のプロパティを含む新しい Example を作成します。
      パラメーター:
      probe - null であってはなりません。
      戻り値:
    • of

      static <T> Example<T> of(T probe, ExampleMatcher matcher)
      指定された ExampleMatcher を使用して新しい Example を作成します。
      パラメーター:
      probe - null であってはなりません。
      matcher - null であってはなりません。
      戻り値:
    • getProbe

      T getProbe()
      使用例を取得します。
      戻り値:
      非 null。
    • getMatcher

      ExampleMatcher getMatcher()
      ExampleMatcher を使用します。
      戻り値:
      非 null。
    • getProbeType

      default ClassSE<T> getProbeType()
      使用されるプローブの実際の型を取得します。これは通常、指定されたクラスですが、CGLIB で生成されたサブクラスの場合は元のクラスです。
      戻り値:
      関連事項: