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.
        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.
        item - the item to match
        true if the item matches; false otherwise.
        RepositoryException - if an error occurs.