Package com.day.cq.commons.predicate
Class AbstractResourcePredicate
- java.lang.Object
-
- com.day.cq.commons.predicate.AbstractResourcePredicate
-
-
Constructor Summary
Constructors Constructor Description AbstractResourcePredicate()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(java.lang.Object o)
Use the specified parameter to perform a test that returns true or false.abstract boolean
evaluate(Resource res)
Evaluates this predicate on the given Resource.
-
-
-
Method Detail
-
evaluate
public boolean evaluate(java.lang.Object o)
Use the specified parameter to perform a test that returns true or false.- Specified by:
evaluate
in interfacePredicate
- Parameters:
o
- the object to evaluate, should not be changed- Returns:
true
if o is a Resource the subsequent call toevaluate(Resource)
returnstrue
;false
otherwise.
-
evaluate
public abstract boolean evaluate(Resource res)
Evaluates this predicate on the given Resource.- Parameters:
res
- given resource- Returns:
true
if this resource satisfies this predicate
-
-