Class AbstractResourcePredicate

  • All Implemented Interfaces:
    Predicate

    public abstract class AbstractResourcePredicate
    extends java.lang.Object
    implements Predicate
    Predicate used to filter sling Resource
    • 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractResourcePredicate

        public AbstractResourcePredicate()
    • 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 interface Predicate
        Parameters:
        o - the object to evaluate, should not be changed
        Returns:
        true if o is a Resource the subsequent call to evaluate(Resource) returns true; 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