public static class CriteriaDefinition.Predicate extends Object
| Constructor and Description |
|---|
Predicate(CriteriaDefinition.Operator operator,
Object value)
|
| Modifier and Type | Method and Description |
|---|---|
<R> R |
as(Function<Object,? extends R> mappingFunction)
This method allows the application of a function to this
CriteriaDefinition.Predicate value. |
boolean |
equals(Object o) |
CriteriaDefinition.Operator |
getOperator() |
Object |
getValue() |
int |
hashCode() |
public Predicate(CriteriaDefinition.Operator operator, @Nullable Object value)
operator - must not be null.value - the match value.public CriteriaDefinition.Operator getOperator()
public <R> R as(Function<Object,? extends R> mappingFunction)
CriteriaDefinition.Predicate value. The function should expect a
single Object argument and produce an R result. Any exception thrown by f() will be propagated to
the caller.R - mappingFunction.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.