Class DepthPredicate

    • Field Detail

      • minDepth

        protected final int minDepth
        The minimal depth
      • maxDepth

        protected final int maxDepth
        The maximal depth
    • 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

      • matches

        protected boolean matches​(Item item)
                           throws RepositoryException
        Returns true. Subclasses can override to implement something useful that is dependant of the depth.
        Parameters:
        item - the item to match
        Returns:
        true if the item matches; false otherwise.
        Throws:
        RepositoryException - if an error occurs.