final class MultiplePathFilter extends java.lang.Object implements PathFilter
Modifier and Type | Field and Description |
---|---|
private boolean |
defaultVal |
private PathFilter[] |
filters |
private int |
hashCode |
private boolean[] |
includeFlag |
Constructor and Description |
---|
MultiplePathFilter(PathFilter[] filters,
boolean[] includeFlag,
boolean defaultVal) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.String path)
Determine whether a path should be accepted.
|
boolean |
equals(MultiplePathFilter other) |
boolean |
equals(java.lang.Object other)
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[] filters
private final boolean[] includeFlag
private final boolean defaultVal
private final int hashCode
MultiplePathFilter(PathFilter[] filters, boolean[] includeFlag, boolean defaultVal)
public boolean accept(java.lang.String path)
PathFilter
/
" characters.accept
in interface PathFilter
path
- the path to checkpublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
PathFilter
hashCode
in interface PathFilter
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
PathFilter
equals
in interface PathFilter
equals
in class java.lang.Object
other
- the other objecttrue
if this filter is the samepublic boolean equals(MultiplePathFilter other)