org.sonatype.aether.util.filter
Class NotDependencyFilter

java.lang.Object
  extended by org.sonatype.aether.util.filter.NotDependencyFilter
All Implemented Interfaces:
DependencyFilter

public class NotDependencyFilter
extends Object
implements DependencyFilter

A dependency filter that negates another filter.

Author:
Benjamin Bentmann

Constructor Summary
NotDependencyFilter(DependencyFilter filter)
          Creates a new filter negatint the specified filter.
 
Method Summary
 boolean accept(DependencyNode node, List<DependencyNode> parents)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotDependencyFilter

public NotDependencyFilter(DependencyFilter filter)
Creates a new filter negatint the specified filter.

Parameters:
filter - The filter to negate, must not be null.
Method Detail

accept

public boolean accept(DependencyNode node,
                      List<DependencyNode> parents)
Specified by:
accept in interface DependencyFilter

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.