インターフェース 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
ネストされたクラスの要約
ネストされたクラス修飾子と型インターフェース説明static classstring matchingと大文字と小文字の区別を指定する汎用プロパティマッチャー。static classExampleMatcher.GenericPropertyMatcherを作成するための定義済みのプロパティマッチャー。static interfaceマッチャーを構成するためのコールバック。static enumクライアントが述語を連結する方法について見つけることができるように公開する一致モード。static enumstatic enumExampleから基準を作成するための Null 処理。static classDot-Path の特定のプロパティ処理を定義します。static classドットパスの特定のプロパティ処理を定義します。static interfaceクエリで使用する前にプロパティ値を変換できます。static enumStringSE 値の処理のためのモードを一致させます。メソッドのサマリー
修飾子と型メソッド説明定義されたExampleMatcher.StringMatcherを取得します。ExampleMatcherの一致モードを取得します。定義済みの null 処理を取得します。default booleanExampleのすべての述語が一致すると想定されるかどうかを返します。default booleanExampleの述語のいずれかが一致すれば十分かどうかを返します。booleandefault booleanisIgnoredPath(StringSE path) static ExampleMatchermatching()デフォルトで、例から導出されたすべての述語に一致する、 null 以外のすべてのプロパティを含む新しいExampleMatcherを作成します。static ExampleMatcherデフォルトで、例から導出されたすべての述語に一致する、 null 以外のすべてのプロパティを含む新しいExampleMatcherを作成します。static ExampleMatcher例から導出されたすべての述語にデフォルトで一致する、 null 以外のすべてのプロパティを含む新しいExampleMatcherを作成します。default ExampleMatcherデフォルトで大文字と小文字の区別を無視して、このExampleMatcherのコピーを返します。withIgnoreCase(boolean defaultIgnoreCase) このExampleMatcherのコピーをdefaultIgnoreCaseとともに返します。withIgnoreCase(StringSE... propertyPaths) propertyPathsの大文字と小文字を区別せずに、このExampleMatcherのコピーを返します。default ExampleMatcherExampleMatcher.NullHandler.IGNOREの null 値を処理して、このExampleMatcherのコピーを返します。withIgnorePaths(StringSE... ignoredPaths) 指定されたpropertyPathsを持つこのExampleMatcherのコピーを返します。default ExampleMatcherExampleMatcher.NullHandler.INCLUDEの null 値を処理して、このExampleMatcherのコピーを返します。withMatcher(StringSE propertyPath, ExampleMatcher.GenericPropertyMatcher genericPropertyMatcher) default ExampleMatcherwithMatcher(StringSE propertyPath, ExampleMatcher.MatcherConfigurer<ExampleMatcher.GenericPropertyMatcher> matcherConfigurer) withNullHandler(ExampleMatcher.NullHandler nullHandler) 指定されたnullHandlerを持つこのExampleMatcherのコピーを返します。withStringMatcher(ExampleMatcher.StringMatcher defaultStringMatcher) defaultStringMatcherに一致する指定された文字列を持つこのExampleMatcherのコピーを返します。withTransformer(StringSE propertyPath, ExampleMatcher.PropertyValueTransformer propertyValueTransformer)
メソッドの詳細
matching
デフォルトで、例から導出されたすべての述語に一致する、 null 以外のすべてのプロパティを含む新しいExampleMatcherを作成します。- 戻り値:
ExampleMatcherの新しいインスタンス。- 関連事項:
matchingAny
例から導出されたすべての述語にデフォルトで一致する、 null 以外のすべてのプロパティを含む新しいExampleMatcherを作成します。- 戻り値:
ExampleMatcherの新しいインスタンス。
matchingAll
デフォルトで、例から導出されたすべての述語に一致する、 null 以外のすべてのプロパティを含む新しいExampleMatcherを作成します。- 戻り値:
ExampleMatcherの新しいインスタンス。
withIgnorePaths
指定されたpropertyPathsを持つこのExampleMatcherのコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。- パラメーター:
ignoredPaths- null でも空でもいけません。- 戻り値:
ExampleMatcherの新しいインスタンス。
withStringMatcher
defaultStringMatcherの指定された文字列一致を持つこのExampleMatcherのコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。- パラメーター:
defaultStringMatcher- null であってはなりません。- 戻り値:
ExampleMatcherの新しいインスタンス。
withIgnoreCase
デフォルトでは大文字と小文字の区別を無視して、このExampleMatcherのコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。- 戻り値:
ExampleMatcherの新しいインスタンス。
withIgnoreCase
この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- null であってはなりません。propertyValueTransformer- null であってはなりません。- 戻り値:
ExampleMatcherの新しいインスタンス。
withIgnoreCase
propertyPathsの大文字と小文字を無視して、このExampleMatcherのコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。- パラメーター:
propertyPaths- null でも空でもいけません。- 戻り値:
ExampleMatcherの新しいインスタンス。
withIncludeNullValues
ExampleMatcher.NullHandler.INCLUDEの NULL 値を処理して、このExampleMatcherのコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。- 戻り値:
ExampleMatcherの新しいインスタンス。
withIgnoreNullValues
ExampleMatcher.NullHandler.IGNOREの NULL 値を処理して、このExampleMatcherのコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。- 戻り値:
ExampleMatcherの新しいインスタンス。
withNullHandler
指定されたnullHandlerを持つこのExampleMatcherのコピーを返します。このインスタンスは不変であり、このメソッド呼び出しの影響を受けません。- パラメーター:
nullHandler- null であってはなりません。- 戻り値:
ExampleMatcherの新しいインスタンス。
getNullHandler
ExampleMatcher.NullHandler getNullHandler()定義済みの null 処理を取得します。- 戻り値:
- 非 null
getDefaultStringMatcher
ExampleMatcher.StringMatcher getDefaultStringMatcher()定義されたExampleMatcher.StringMatcherを取得します。- 戻り値:
- 決して null にはなりません。
isIgnoreCaseEnabled
boolean isIgnoreCaseEnabled()- 戻り値:
StringSE を大文字と小文字を区別しないオプションと一致させる必要がある場合は true。
isIgnoredPath
- パラメーター:
path- null であってはなりません。- 戻り値:
- パスが無視されるように設定されている場合は true を返します。
getIgnoredPaths
- 戻り値:
- 無視されたパスの変更不可能な
SetSE。
getPropertySpecifiers
ExampleMatcher.PropertySpecifiers getPropertySpecifiers()isAllMatching
default boolean isAllMatching()- 戻り値:
Exampleのすべての述語が一致することになっているのか、それともそれらのいずれかで十分なのか。
isAnyMatching
default boolean isAnyMatching()Exampleのいずれかの述語が一致するだけで十分かどうかを返します。false が返された場合、結果を生成するには、例から派生したすべての述語が一致する必要があります。- 戻り値:
Exampleの述語のいずれかが一致するだけで十分か、それともすべてが一致する必要があるか。
getMatchMode
ExampleMatcher.MatchMode getMatchMode()ExampleMatcherの一致モードを取得します。- 戻り値:
- 決して null にはなりません。
- 導入:
- 2.0