Package org.jboss.modules.filter
Class MultiplePathFilter
java.lang.Object
org.jboss.modules.filter.MultiplePathFilter
- All Implemented Interfaces:
PathFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final PathFilter[]private final intprivate final boolean[] -
Constructor Summary
ConstructorsConstructorDescriptionMultiplePathFilter(PathFilter[] filters, boolean[] includeFlag, boolean defaultVal) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether a path should be accepted.booleanDetermine whether this filter is equal to another.booleanequals(MultiplePathFilter other) inthashCode()Calculate a unique hash code for this path filter.toString()
-
Field Details
-
filters
-
includeFlag
private final boolean[] includeFlag -
defaultVal
private final boolean defaultVal -
hashCode
private final int hashCode
-
-
Constructor Details
-
MultiplePathFilter
MultiplePathFilter(PathFilter[] filters, boolean[] includeFlag, boolean defaultVal)
-
-
Method Details
-
accept
Description copied from interface:PathFilterDetermine whether a path should be accepted. The given name is a path separated by "/" characters.- Specified by:
acceptin interfacePathFilter- Parameters:
path- the path to check- Returns:
- true if the path should be accepted, false if not
-
toString
-
hashCode
public int hashCode()Description copied from interface:PathFilterCalculate a unique hash code for this path filter. Equal path filters must yield identical hash codes.- Specified by:
hashCodein interfacePathFilter- Overrides:
hashCodein classObject- Returns:
- the hash code
-
equals
Description copied from interface:PathFilterDetermine whether this filter is equal to another. Filters must implement meaningful (non-identity) equality semantics.- Specified by:
equalsin interfacePathFilter- Overrides:
equalsin classObject- Parameters:
other- the other object- Returns:
trueif this filter is the same
-
equals
-