public class EqualsPredicate<T> extends ComparisonPredicate<T>
Resource
property.Constructor and Description |
---|
EqualsPredicate(String propertyId,
Comparable<T> value) |
Modifier and Type | Method and Description |
---|---|
ComparisonPredicate<T> |
copy(String propertyId) |
boolean |
evaluate(Resource resource)
Evaluate the predicate for the given resource.
|
boolean |
evaluateIgnoreCase(Resource resource)
Case insensitive equality support for string types
|
String |
getOperator() |
accept, compareValueTo, compareValueToIgnoreCase, equals, getValue, hashCode, toString
getPropertyId, getPropertyIds
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyIds
public EqualsPredicate(String propertyId, Comparable<T> value)
public boolean evaluate(Resource resource)
Predicate
resource
- the resource to evaluate the predicate againstpublic boolean evaluateIgnoreCase(Resource resource)
resource
- public String getOperator()
getOperator
in class ComparisonPredicate<T>
public ComparisonPredicate<T> copy(String propertyId)
copy
in class ComparisonPredicate<T>
Copyright © 2022 Apache Software Foundation. All rights reserved.