Class AncestorOrSelfDependencyNodeFilter

  • All Implemented Interfaces:
    DependencyNodeFilter

    public class AncestorOrSelfDependencyNodeFilter
    extends java.lang.Object
    implements DependencyNodeFilter
    A dependency node filter than only accepts nodes that are ancestors of, or equal to, a given list of nodes.
    Since:
    1.1
    Version:
    $Id: AncestorOrSelfDependencyNodeFilter.java 1595642 2014-05-18 17:32:08Z jvanzyl $
    Author:
    Mark Hobson
    • Constructor Detail

      • AncestorOrSelfDependencyNodeFilter

        public AncestorOrSelfDependencyNodeFilter​(DependencyNode descendantNode)
      • AncestorOrSelfDependencyNodeFilter

        public AncestorOrSelfDependencyNodeFilter​(java.util.List<DependencyNode> descendantNodes)
        Creates a dependency node filter that only accepts nodes that are ancestors of, or equal to, the specified list of nodes.
        Parameters:
        descendantNodes - the list of nodes to accept ancestors-or-self of
    • Method Detail

      • accept

        public boolean accept​(DependencyNode node)
        Gets whether this filter accepts the specified dependency node.
        Specified by:
        accept in interface DependencyNodeFilter
        Parameters:
        node - the dependency node to check
        Returns:
        true if this filter accepts the specified dependency node