インターフェース ExampleMatcher


public interface ExampleMatcher
例示による問い合わせ(QBE)で使用するプロパティパスマッチングの仕様。object typeSE に対して ExampleMatcher を作成できます。ExampleMatcher のインスタンスは matchingAll() または matchingAny() のいずれかで、設定は流れるようなスタイルで with... メソッドを調整できます。with... メソッドは、指定された設定で ExampleMatcher インスタンスのコピーを返します。null 処理のデフォルトは ExampleMatcher.NullHandler.IGNORE で、大文字と小文字が区別される ExampleMatcher.StringMatcher.DEFAULT 文字列マッチングです。

このクラスは不変です。

導入:
1.12
作成者:
Christoph Strobl, Mark Paluch, Oliver Gierke, Jens Schauder
  • メソッドの詳細

    • matching

      static ExampleMatcher matching()
      デフォルトで、例から導出されたすべての述語に一致する、 null 以外のすべてのプロパティを含む新しい ExampleMatcher を作成します。
      戻り値:
      ExampleMatcher の新しいインスタンス。
      関連事項:
    • matchingAny

      static ExampleMatcher matchingAny()
      例から導出されたすべての述語にデフォルトで一致する、 null 以外のすべてのプロパティを含む新しい ExampleMatcher を作成します。
      戻り値:
      ExampleMatcher の新しいインスタンス。
    • matchingAll

      static ExampleMatcher matchingAll()
      デフォルトで、例から導出されたすべての述語に一致する、 null 以外のすべてのプロパティを含む新しい ExampleMatcher を作成します。
      戻り値:
      ExampleMatcher の新しいインスタンス。
    • withIgnorePaths

      ExampleMatcher withIgnorePaths(StringSE... ignoredPaths)
      指定された propertyPaths を持つこの ExampleMatcher のコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。
      パラメーター:
      ignoredPaths - null でも空でもいけません。
      戻り値:
      ExampleMatcher の新しいインスタンス。
    • withStringMatcher

      ExampleMatcher withStringMatcher(ExampleMatcher.StringMatcher defaultStringMatcher)
      defaultStringMatcher の指定された文字列一致を持つこの ExampleMatcher のコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。
      パラメーター:
      defaultStringMatcher - null であってはなりません。
      戻り値:
      ExampleMatcher の新しいインスタンス。
    • withIgnoreCase

      default ExampleMatcher withIgnoreCase()
      デフォルトでは大文字と小文字の区別を無視して、この ExampleMatcher のコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。
      戻り値:
      ExampleMatcher の新しいインスタンス。
    • withIgnoreCase

      ExampleMatcher withIgnoreCase(boolean defaultIgnoreCase)
      この ExampleMatcher のコピーを defaultIgnoreCase とともに返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。
      パラメーター:
      defaultIgnoreCase -
      戻り値:
      ExampleMatcher の新しいインスタンス。
    • withMatcher

      default ExampleMatcher withMatcher(StringSE propertyPath, ExampleMatcher.MatcherConfigurer<ExampleMatcher.GenericPropertyMatcher> matcherConfigurer)
      propertyPath に指定された GenericPropertyMatcher を含むこの ExampleMatcher のコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。
      パラメーター:
      propertyPath - null であってはなりません。
      matcherConfigurer - ExampleMatcher.GenericPropertyMatcher を構成するためのコールバックは null であってはなりません。
      戻り値:
      ExampleMatcher の新しいインスタンス。
    • withMatcher

      ExampleMatcher withMatcher(StringSE propertyPath, ExampleMatcher.GenericPropertyMatcher genericPropertyMatcher)
      propertyPath に指定された GenericPropertyMatcher を含むこの ExampleMatcher のコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。
      パラメーター:
      propertyPath - null であってはなりません。
      genericPropertyMatcher - ExampleMatcher.GenericPropertyMatcher を構成するためのコールバックは null であってはなりません。
      戻り値:
      ExampleMatcher の新しいインスタンス。
    • withTransformer

      ExampleMatcher withTransformer(StringSE propertyPath, ExampleMatcher.PropertyValueTransformer propertyValueTransformer)
      propertyPath に対して指定された PropertyValueTransformer を持つこの ExampleMatcher のコピーを返します。
      パラメーター:
      propertyPath - null であってはなりません。
      propertyValueTransformer - null であってはなりません。
      戻り値:
      ExampleMatcher の新しいインスタンス。
    • withIgnoreCase

      ExampleMatcher withIgnoreCase(StringSE... propertyPaths)
      propertyPaths の大文字と小文字を無視して、この ExampleMatcher のコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。
      パラメーター:
      propertyPaths - null でも空でもいけません。
      戻り値:
      ExampleMatcher の新しいインスタンス。
    • withIncludeNullValues

      default ExampleMatcher withIncludeNullValues()
      ExampleMatcher.NullHandler.INCLUDE の NULL 値を処理して、この ExampleMatcher のコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。
      戻り値:
      ExampleMatcher の新しいインスタンス。
    • withIgnoreNullValues

      default ExampleMatcher withIgnoreNullValues()
      ExampleMatcher.NullHandler.IGNORE の NULL 値を処理して、この ExampleMatcher のコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。
      戻り値:
      ExampleMatcher の新しいインスタンス。
    • withNullHandler

      ExampleMatcher withNullHandler(ExampleMatcher.NullHandler nullHandler)
      指定された nullHandler を持つこの ExampleMatcher のコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。
      パラメーター:
      nullHandler - null であってはなりません。
      戻り値:
      ExampleMatcher の新しいインスタンス。
    • getNullHandler

      ExampleMatcher.NullHandler getNullHandler()
      定義済みの null 処理を取得します。
      戻り値:
      非 null
    • getDefaultStringMatcher

      ExampleMatcher.StringMatcher getDefaultStringMatcher()
      定義された ExampleMatcher.StringMatcher を取得します。
      戻り値:
      非 null。
    • isIgnoreCaseEnabled

      boolean isIgnoreCaseEnabled()
      戻り値:
      StringSE を大文字と小文字を区別しないオプションと一致させる必要がある場合は true。
    • isIgnoredPath

      default boolean isIgnoredPath(StringSE path)
      パラメーター:
      path - null であってはなりません。
      戻り値:
      パスが無視されるように設定されている場合は true を返します。
    • getIgnoredPaths

      SetSE<StringSE> getIgnoredPaths()
      戻り値:
      無視されたパスの変更不可能な SetSE
    • getPropertySpecifiers

      ExampleMatcher.PropertySpecifiers getPropertySpecifiers()
      戻り値:
      ExampleMatcher 内の ExampleMatcher.PropertySpecifiers
    • isAllMatching

      default boolean isAllMatching()
      Example のすべての述語が一致することになっているのかどうかを返します。false が返された場合、Example から派生した述語のいずれかが一致すれば十分です。
      戻り値:
      Example のすべての述語が一致することになっているのか、それともそれらのいずれかで十分なのか。
    • isAnyMatching

      default boolean isAnyMatching()
      Example のいずれかの述語が一致するだけで十分かどうかを返します。false が返された場合、結果を生成するには、例から派生したすべての述語が一致する必要があります。
      戻り値:
      Example の述語のいずれかが一致するだけで十分か、それともすべてが一致する必要があるか。
    • getMatchMode

      ExampleMatcher.MatchMode getMatchMode()
      ExampleMatcher の一致モードを取得します。
      戻り値:
      非 null。
      導入:
      2.0