final class InvertingPathFilter extends java.lang.Object implements PathFilter
Modifier and Type | Field and Description |
---|---|
private PathFilter |
delegate |
Constructor and Description |
---|
InvertingPathFilter(PathFilter delegate)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.String path)
Determine whether a path should be accepted.
|
boolean |
equals(InvertingPathFilter obj) |
boolean |
equals(java.lang.Object obj)
Determine whether this filter is equal to another.
|
(package private) PathFilter |
getDelegate() |
int |
hashCode()
Calculate a unique hash code for this path filter.
|
java.lang.String |
toString() |
private final PathFilter delegate
InvertingPathFilter(PathFilter delegate)
delegate
- the filter to delegate topublic boolean accept(java.lang.String path)
/
" characters.accept
in interface PathFilter
path
- the path to checkPathFilter getDelegate()
public int hashCode()
PathFilter
hashCode
in interface PathFilter
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
PathFilter
equals
in interface PathFilter
equals
in class java.lang.Object
obj
- the other objecttrue
if this filter is the samepublic boolean equals(InvertingPathFilter obj)
public java.lang.String toString()
toString
in class java.lang.Object