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 Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getPath()
Get the properties Dot-Path.Get the property transformer to be applied.Get theExampleMatcher.StringMatcher
.int
hashCode()
transformValue
(Optional<Object> source) Transforms a given source using theExampleMatcher.PropertyValueTransformer
.withIgnoreCase
(boolean ignoreCase) Creates a newExampleMatcher.PropertySpecifier
containing all values from the current instance and setsignoreCase
.withStringMatcher
(ExampleMatcher.StringMatcher stringMatcher) Creates a newExampleMatcher.PropertySpecifier
containing all values from the current instance and setsExampleMatcher.StringMatcher
in the returned instance.withValueTransformer
(ExampleMatcher.PropertyValueTransformer valueTransformer) Creates a newExampleMatcher.PropertySpecifier
containing all values from the current instance and setsExampleMatcher.PropertyValueTransformer
in the returned instance.
-
Method Details
-
withStringMatcher
public ExampleMatcher.PropertySpecifier withStringMatcher(ExampleMatcher.StringMatcher stringMatcher) Creates a newExampleMatcher.PropertySpecifier
containing all values from the current instance and setsExampleMatcher.StringMatcher
in the returned instance.- Parameters:
stringMatcher
- must not be null.- Returns:
-
withIgnoreCase
Creates a newExampleMatcher.PropertySpecifier
containing all values from the current instance and setsignoreCase
.- Parameters:
ignoreCase
- must not be null.- Returns:
-
withValueTransformer
public ExampleMatcher.PropertySpecifier withValueTransformer(ExampleMatcher.PropertyValueTransformer valueTransformer) Creates a newExampleMatcher.PropertySpecifier
containing all values from the current instance and setsExampleMatcher.PropertyValueTransformer
in the returned instance.- Parameters:
valueTransformer
- must not be null.- Returns:
-
getPath
Get the properties Dot-Path.- Returns:
- never null.
-
getStringMatcher
Get theExampleMatcher.StringMatcher
.- Returns:
- can be null.
-
getIgnoreCase
- Returns:
- null if not set.
-
getPropertyValueTransformer
Get the property transformer to be applied.- Returns:
- never null.
-
transformValue
Transforms a given source using theExampleMatcher.PropertyValueTransformer
.- Parameters:
source
-- Returns:
-
equals
-
hashCode
public int hashCode() -
canEqual
-