Package org.springframework.data.domain
Class ExampleMatcher.PropertySpecifier
java.lang.Object
org.springframework.data.domain.ExampleMatcher.PropertySpecifier
- Enclosing interface:
- ExampleMatcher
Define specific property handling for a Dot-Path.
- Since:
- 1.12
- Author:
- Christoph Strobl, Mark Paluch
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleangetPath()Get the properties Dot-Path.Get the property transformer to be applied.Get theExampleMatcher.StringMatcher.inthashCode()transformValue(Optional<Object> source) Transforms a given source using theExampleMatcher.PropertyValueTransformer.withIgnoreCase(boolean ignoreCase) Creates a newExampleMatcher.PropertySpecifiercontaining all values from the current instance and setsignoreCase.withStringMatcher(ExampleMatcher.StringMatcher stringMatcher) Creates a newExampleMatcher.PropertySpecifiercontaining all values from the current instance and setsExampleMatcher.StringMatcherin the returned instance.withValueTransformer(ExampleMatcher.PropertyValueTransformer valueTransformer) Creates a newExampleMatcher.PropertySpecifiercontaining all values from the current instance and setsExampleMatcher.PropertyValueTransformerin the returned instance.
- 
Method Details- 
withStringMatcherpublic ExampleMatcher.PropertySpecifier withStringMatcher(ExampleMatcher.StringMatcher stringMatcher) Creates a newExampleMatcher.PropertySpecifiercontaining all values from the current instance and setsExampleMatcher.StringMatcherin the returned instance.- Parameters:
- stringMatcher- must not be null.
- Returns:
 
- 
withIgnoreCaseCreates a newExampleMatcher.PropertySpecifiercontaining all values from the current instance and setsignoreCase.- Parameters:
- ignoreCase- must not be null.
- Returns:
 
- 
withValueTransformerpublic ExampleMatcher.PropertySpecifier withValueTransformer(ExampleMatcher.PropertyValueTransformer valueTransformer) Creates a newExampleMatcher.PropertySpecifiercontaining all values from the current instance and setsExampleMatcher.PropertyValueTransformerin the returned instance.- Parameters:
- valueTransformer- must not be null.
- Returns:
 
- 
getPathGet the properties Dot-Path.- Returns:
- never null.
 
- 
getStringMatcherGet theExampleMatcher.StringMatcher.- Returns:
- can be null.
 
- 
getIgnoreCase- Returns:
- null if not set.
 
- 
getPropertyValueTransformerGet the property transformer to be applied.- Returns:
- never null.
 
- 
transformValueTransforms a given source using theExampleMatcher.PropertyValueTransformer.- Parameters:
- source-
- Returns:
 
- 
equals
- 
hashCodepublic int hashCode()
- 
canEqual
 
-