Package tech.jhipster.service.filter
Class StringFilter
- All Implemented Interfaces:
Serializable
Class for filtering attributes with
String type.
It can be added to a criteria class as a member, to support the following query parameters:
fieldName.equals='something'
fieldName.notEquals='something'
fieldName.specified=true
fieldName.specified=false
fieldName.in='something','other'
fieldName.notIn='something','other'
fieldName.contains='thing'
fieldName.doesNotContain='thing'
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for StringFilter.StringFilter(StringFilter filter) Constructor for StringFilter. -
Method Summary
Modifier and TypeMethodDescriptioncopy()copy.booleanGetter for the fieldcontains.Getter for the fielddoesNotContain.inthashCode()setContains(String contains) Setter for the fieldcontains.setDoesNotContain(String doesNotContain) Setter for the fielddoesNotContain.toString()Methods inherited from class tech.jhipster.service.filter.Filter
getEquals, getFilterName, getIn, getNotEquals, getNotIn, getSpecified, setEquals, setIn, setNotEquals, setNotIn, setSpecified
-
Constructor Details
-
StringFilter
public StringFilter()Constructor for StringFilter.
-
StringFilter
Constructor for StringFilter.
- Parameters:
filter- aStringFilterobject.
-
-
Method Details
-
copy
copy.
-
getContains
Getter for the field
contains.- Returns:
- a
Stringobject.
-
setContains
Setter for the field
contains.- Parameters:
contains- aStringobject.- Returns:
- a
StringFilterobject.
-
getDoesNotContain
Getter for the field
doesNotContain.- Returns:
- a
Stringobject.
-
setDoesNotContain
Setter for the field
doesNotContain.- Parameters:
doesNotContain- aStringobject.- Returns:
- a
StringFilterobject.
-
equals
-
hashCode
public int hashCode() -
toString
-