Package org.springframework.data.domain
Class ExampleMatcher.GenericPropertyMatcher
java.lang.Object
org.springframework.data.domain.ExampleMatcher.GenericPropertyMatcher
- Enclosing interface:
 - ExampleMatcher
 
A generic property matcher that specifies 
string matching and case sensitivity.- Author:
 - Mark Paluch
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected booleanSets ignores case to false.contains()Sets string matcher toExampleMatcher.StringMatcher.CONTAINING.endsWith()Sets string matcher toExampleMatcher.StringMatcher.ENDING.booleanexact()Sets string matcher toExampleMatcher.StringMatcher.EXACT.inthashCode()Sets ignores case to true.ignoreCase(boolean ignoreCase) Sets ignores case toignoreCase.of(ExampleMatcher.StringMatcher stringMatcher) Creates a newExampleMatcher.GenericPropertyMatcherwith aExampleMatcher.StringMatcherandignoreCase.of(ExampleMatcher.StringMatcher stringMatcher, boolean ignoreCase) Creates a newExampleMatcher.GenericPropertyMatcherwith aExampleMatcher.StringMatcherandignoreCase.regex()Sets string matcher toExampleMatcher.StringMatcher.REGEX.Sets string matcher toExampleMatcher.StringMatcher.STARTING.Sets string matcher toExampleMatcher.StringMatcher.DEFAULT.stringMatcher(ExampleMatcher.StringMatcher stringMatcher) Sets string matcher tostringMatcher.transform(ExampleMatcher.PropertyValueTransformer propertyValueTransformer) Sets theExampleMatcher.PropertyValueTransformertopropertyValueTransformer. 
- 
Constructor Details
- 
GenericPropertyMatcher
public GenericPropertyMatcher()Creates an unconfiguredExampleMatcher.GenericPropertyMatcher. 
 - 
 - 
Method Details
- 
of
public static ExampleMatcher.GenericPropertyMatcher of(ExampleMatcher.StringMatcher stringMatcher, boolean ignoreCase) Creates a newExampleMatcher.GenericPropertyMatcherwith aExampleMatcher.StringMatcherandignoreCase.- Parameters:
 stringMatcher- must not be null.ignoreCase- true to ignore case.
 - 
of
Creates a newExampleMatcher.GenericPropertyMatcherwith aExampleMatcher.StringMatcherandignoreCase.- Parameters:
 stringMatcher- must not be null.
 - 
ignoreCase
Sets ignores case to true. - 
ignoreCase
Sets ignores case toignoreCase.- Parameters:
 ignoreCase- true to ignore case.
 - 
caseSensitive
Sets ignores case to false. - 
contains
Sets string matcher toExampleMatcher.StringMatcher.CONTAINING. - 
endsWith
Sets string matcher toExampleMatcher.StringMatcher.ENDING. - 
startsWith
Sets string matcher toExampleMatcher.StringMatcher.STARTING. - 
exact
Sets string matcher toExampleMatcher.StringMatcher.EXACT. - 
storeDefaultMatching
Sets string matcher toExampleMatcher.StringMatcher.DEFAULT. - 
regex
Sets string matcher toExampleMatcher.StringMatcher.REGEX. - 
stringMatcher
@Contract("_ -> this") public ExampleMatcher.GenericPropertyMatcher stringMatcher(ExampleMatcher.StringMatcher stringMatcher) Sets string matcher tostringMatcher.- Parameters:
 stringMatcher- must not be null.
 - 
transform
@Contract("_ -> this") public ExampleMatcher.GenericPropertyMatcher transform(ExampleMatcher.PropertyValueTransformer propertyValueTransformer) Sets theExampleMatcher.PropertyValueTransformertopropertyValueTransformer.- Parameters:
 propertyValueTransformer- must not be null.
 - 
canEqual
 - 
equals
 - 
hashCode
public int hashCode() 
 -