Class DepthPredicate

    • Field Summary

      • Fields inherited from interface org.apache.jackrabbit.commons.predicate.Predicate

        FALSE, TRUE
    • Constructor Summary

      Constructors 
      Constructor Description
      DepthPredicate​(int minDepth, int maxDepth)
      Creates a new depth filter for the given depths.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean evaluate​(java.lang.Object item)
      Matches if the given depth is greater or equal the minimum depth and less or equal the maximum depth and if the call to matches(Item) returns true.
      • Methods inherited from class java.lang.Object

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

      • DepthPredicate

        public DepthPredicate​(int minDepth,
                              int maxDepth)
        Creates a new depth filter for the given depths.
        Parameters:
        minDepth - the minimal depth
        maxDepth - the maximal depth
    • Method Detail

      • evaluate

        public boolean evaluate​(java.lang.Object item)
        Matches if the given depth is greater or equal the minimum depth and less or equal the maximum depth and if the call to matches(Item) returns true.
        Specified by:
        evaluate in interface Predicate
        Parameters:
        item - some object
        Returns:
        predicate result
        See Also:
        Predicate.evaluate(java.lang.Object)