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, getPropertyIdsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyIdsprotected ComparisonPredicate(String propertyId, Comparable<T> value)
public Comparable<T> getValue()
public boolean equals(Object o)
equals in class PropertyPredicatepublic int hashCode()
hashCode in class PropertyPredicatepublic void accept(PredicateVisitor visitor)
PredicateVisitorAcceptoraccept in interface PredicateVisitorAcceptorvisitor - the visitorprotected int compareValueToIgnoreCase(Object propertyValue) throws ClassCastException
ClassCastExceptionprotected int compareValueTo(Object propertyValue) throws ClassCastException
ClassCastExceptionpublic abstract String getOperator()
public abstract ComparisonPredicate<T> copy(String propertyId)
Copyright © 2022 Apache Software Foundation. All rights reserved.