final class AggregatePathFilter extends java.lang.Object implements PathFilter
Modifier and Type | Field and Description |
---|---|
private boolean |
any |
private PathFilter[] |
delegates |
private int |
hashCode |
Constructor and Description |
---|
AggregatePathFilter(boolean any,
PathFilter... delegates)
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(AggregatePathFilter obj) |
boolean |
equals(java.lang.Object obj)
Determine whether this filter is equal to another.
|
int |
hashCode()
Calculate a unique hash code for this path filter.
|
java.lang.String |
toString() |
private final PathFilter[] delegates
private final boolean any
private final int hashCode
AggregatePathFilter(boolean any, PathFilter... delegates)
any
- true
if this is an "any" filter, false
if this an "all" filterdelegates
- the delegate filter listpublic boolean accept(java.lang.String path)
/
" characters.accept
in interface PathFilter
path
- the path to checkpublic 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(AggregatePathFilter obj)
public java.lang.String toString()
toString
in class java.lang.Object