public class InPredicate extends QueryParameterPredicate
A predicate which compares a query parameter (i.e. left operand) with a set of possible values (i.e. right operand) based on a IN operator.
Constructor and Description |
---|
InPredicate(QueryParameter queryParameter,
Collection<?> possibleValues)
Creates a predicate instance representing a
queryParameter IN (possibleValues[0], … , possibleValues[n]) criterion. |
Modifier and Type | Method and Description |
---|---|
InPredicate |
deriveWithQueryParameter(QueryParameter queryParameter)
Derives a new predicate with the given query parameter from this predicate.
|
com.google.common.collect.ImmutableList<?> |
getPossibleValues()
Returns the possible values (i.e. right operand) of this predicate.
|
QueryParameter |
getQueryParameter()
Returns the query parameter (i.e. left operand) of this predicate.
|
String |
toString() |
and, apply, not, or
public InPredicate(QueryParameter queryParameter, Collection<?> possibleValues)
Creates a predicate instance representing a queryParameter IN (possibleValues[0], … , possibleValues[n])
criterion.
queryParameter
- the left operand of the created predicatepossibleValues
- the right operands of the createdpublic QueryParameter getQueryParameter()
Returns the query parameter (i.e. left operand) of this predicate.
getQueryParameter
in class QueryParameterPredicate
public com.google.common.collect.ImmutableList<?> getPossibleValues()
Returns the possible values (i.e. right operand) of this predicate.
public InPredicate deriveWithQueryParameter(QueryParameter queryParameter)
Derives a new predicate with the given query parameter from this predicate.
deriveWithQueryParameter
in class QueryParameterPredicate
queryParameter
- the new query parameterCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.