public class Equal<T> extends PathSpecification<T>
Filters with equal where-clause (e.g. where firstName = "Homer").
Supports multiple field types: strings, numbers, booleans, enums, dates.
| Modifier and Type | Field and Description |
|---|---|
protected String |
expectedValue |
path| Constructor and Description |
|---|
Equal(QueryContext queryContext,
String path,
String[] httpParamValues,
Converter converter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
javax.persistence.criteria.Predicate |
toPredicate(javax.persistence.criteria.Root<T> root,
javax.persistence.criteria.CriteriaQuery<?> query,
javax.persistence.criteria.CriteriaBuilder cb) |
String |
toString() |
pathprotected String expectedValue
public Equal(QueryContext queryContext, String path, String[] httpParamValues, Converter converter)
public javax.persistence.criteria.Predicate toPredicate(javax.persistence.criteria.Root<T> root, javax.persistence.criteria.CriteriaQuery<?> query, javax.persistence.criteria.CriteriaBuilder cb)
public int hashCode()
hashCode in class PathSpecification<T>public boolean equals(Object obj)
equals in class PathSpecification<T>Copyright © 2014–2020. All rights reserved.