Class NamePredicate

  • All Implemented Interfaces:
    Predicate

    public class NamePredicate
    extends DepthPredicate
    Filters items according to their names.
    • Field Detail

      • name

        protected final String name
        The name to filter on
    • Constructor Detail

      • NamePredicate

        public NamePredicate​(String name,
                             int minDepth,
                             int maxDepth)
        Creates a new name filter with the given name and depths
        Parameters:
        name - the name to filter on
        minDepth - the minimal depth
        maxDepth - the maximal depth
      • NamePredicate

        public NamePredicate​(String name)
        Creates a new name filter with the given name.
        Parameters:
        name - the name to filter on