Package com.sanctionco.opconnect.model
Class Filter.Builder
java.lang.Object
com.sanctionco.opconnect.model.Filter.Builder
- Enclosing class:
- Filter
The builder class used to build a new
Filter
.-
Method Summary
Modifier and TypeMethodDescriptionBuilds a newFilter
with the 'co' operator.Builds a newFilter
with the 'eq' operator.greaterThan(String value)
Builds a newFilter
with the 'gt' operator.greaterThanOrEqual(String value)
Builds a newFilter
with the 'ge' operator.Builds a newFilter
with the 'lt' operator.lessThanOrEqual(String value)
Builds a newFilter
with the 'le' operator.present()
Builds a newFilter
with the 'pr' operator.startsWith(String value)
Builds a newFilter
with the 'sw' operator.
-
Method Details
-
equals
Builds a newFilter
with the 'eq' operator. Filters based on the property exactly matching the given value.- Parameters:
value
- the value that the property should be equal to- Returns:
- the new
Filter
-
contains
Builds a newFilter
with the 'co' operator. Filters based on the property containing the given value.- Parameters:
value
- the value that the property should contain- Returns:
- the new
Filter
-
startsWith
Builds a newFilter
with the 'sw' operator. Filters based on the property starting with the given value.- Parameters:
value
- the value that the property should start with- Returns:
- the new
Filter
-
present
Builds a newFilter
with the 'pr' operator. Filters based on the property being present.- Returns:
- the new
Filter
-
greaterThan
Builds a newFilter
with the 'gt' operator. Filters based on the property being alphanumerically greater than the given value.- Parameters:
value
- the value that the property should be greater than- Returns:
- the new
Filter
-
greaterThanOrEqual
Builds a newFilter
with the 'ge' operator. Filters based on the property being alphanumerically greater than or equal to the given value.- Parameters:
value
- the value that the property should be greater than or equal to- Returns:
- the new
Filter
-
lessThan
Builds a newFilter
with the 'lt' operator. Filters based on the property being alphanumerically less than the given value.- Parameters:
value
- the value that the property should be less than- Returns:
- the new
Filter
-
lessThanOrEqual
Builds a newFilter
with the 'le' operator. Filters based on the property being alphanumerically less than or equal to the given value.- Parameters:
value
- the value that the property should be less than or equal to- Returns:
- the new
Filter
-