final class BooleanPathFilter extends java.lang.Object implements PathFilter
Modifier and Type | Field and Description |
---|---|
(package private) static BooleanPathFilter |
FALSE |
private boolean |
result |
(package private) static BooleanPathFilter |
TRUE |
Modifier | Constructor and Description |
---|---|
private |
BooleanPathFilter(boolean result) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.String path)
Determine whether a path should be accepted.
|
boolean |
equals(java.lang.Object obj)
Determine whether this filter is equal to another.
|
(package private) boolean |
getResult() |
int |
hashCode()
Calculate a unique hash code for this path filter.
|
java.lang.String |
toString() |
private final boolean result
static final BooleanPathFilter TRUE
static final BooleanPathFilter FALSE
public boolean accept(java.lang.String path)
PathFilter
/
" 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 java.lang.String toString()
toString
in class java.lang.Object
boolean getResult()