public abstract class ComparisonPredicate<T> extends PropertyPredicate implements BasePredicate
Resource
property.Modifier | Constructor and Description |
---|---|
protected |
ComparisonPredicate(String propertyId,
Comparable<T> value) |
Modifier and Type | Method and Description |
---|---|
void |
accept(PredicateVisitor visitor)
Accept the given visitor.
|
protected int |
compareValueTo(Object propertyValue) |
protected int |
compareValueToIgnoreCase(Object propertyValue) |
abstract ComparisonPredicate<T> |
copy(String propertyId) |
boolean |
equals(Object o) |
abstract String |
getOperator() |
Comparable<T> |
getValue() |
int |
hashCode() |
String |
toString() |
getPropertyId, getPropertyIds
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyIds
protected ComparisonPredicate(String propertyId, Comparable<T> value)
public Comparable<T> getValue()
public boolean equals(Object o)
equals
in class PropertyPredicate
public int hashCode()
hashCode
in class PropertyPredicate
public void accept(PredicateVisitor visitor)
PredicateVisitorAcceptor
accept
in interface PredicateVisitorAcceptor
visitor
- the visitorprotected int compareValueToIgnoreCase(Object propertyValue) throws ClassCastException
ClassCastException
protected int compareValueTo(Object propertyValue) throws ClassCastException
ClassCastException
public abstract String getOperator()
public abstract ComparisonPredicate<T> copy(String propertyId)
Copyright © 2022 Apache Software Foundation. All rights reserved.