Package org.jboss.modules.filter
Class BooleanPathFilter
- java.lang.Object
-
- org.jboss.modules.filter.BooleanPathFilter
-
- All Implemented Interfaces:
PathFilter
final class BooleanPathFilter extends java.lang.Object implements PathFilter
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static BooleanPathFilter
FALSE
private boolean
result
(package private) static BooleanPathFilter
TRUE
-
Constructor Summary
Constructors Modifier Constructor Description private
BooleanPathFilter(boolean result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
result
private final boolean result
-
TRUE
static final BooleanPathFilter TRUE
-
FALSE
static final BooleanPathFilter FALSE
-
-
Method Detail
-
accept
public boolean accept(java.lang.String path)
Description copied from interface:PathFilter
Determine whether a path should be accepted. The given name is a path separated by "/
" characters.- Specified by:
accept
in interfacePathFilter
- Parameters:
path
- the path to check- Returns:
- true if the path should be accepted, false if not
-
hashCode
public int hashCode()
Description copied from interface:PathFilter
Calculate a unique hash code for this path filter. Equal path filters must yield identical hash codes.- Specified by:
hashCode
in interfacePathFilter
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- the hash code
-
equals
public boolean equals(java.lang.Object obj)
Description copied from interface:PathFilter
Determine whether this filter is equal to another. Filters must implement meaningful (non-identity) equality semantics.- Specified by:
equals
in interfacePathFilter
- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- the other object- Returns:
true
if this filter is the same
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getResult
boolean getResult()
-
-