Package org.jboss.modules.filter
Class SetPathFilter
java.lang.Object
org.jboss.modules.filter.SetPathFilter
- All Implemented Interfaces:
PathFilter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine whether a path should be accepted.boolean
Determine whether this filter is equal to another.boolean
equals
(SetPathFilter obj) int
hashCode()
Calculate a unique hash code for this path filter.toString()
-
Field Details
-
paths
-
hashCode
private final int hashCode
-
-
Constructor Details
-
SetPathFilter
-
-
Method Details
-
accept
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
-
toString
-
equals
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 classObject
- Parameters:
obj
- the other object- Returns:
true
if this filter is the same
-
equals
-
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 classObject
- Returns:
- the hash code
-