Package org.jboss.modules.filter
Class AggregatePathFilter
java.lang.Object
org.jboss.modules.filter.AggregatePathFilter
- All Implemented Interfaces:
PathFilter
PathFilter implementation that aggregates multiple other filters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final PathFilter[]private final int -
Constructor Summary
ConstructorsConstructorDescriptionAggregatePathFilter(boolean any, PathFilter... delegates) Construct a new instance. -
Method Summary
-
Field Details
-
delegates
-
any
private final boolean any -
hashCode
private final int hashCode
-
-
Constructor Details
-
AggregatePathFilter
AggregatePathFilter(boolean any, PathFilter... delegates) Construct a new instance.- Parameters:
any-trueif this is an "any" filter,falseif this an "all" filterdelegates- the delegate filter list
-
-
Method Details
-
accept
Determine 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
-
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:
obj- the other object- Returns:
trueif this filter is the same
-
equals
-
toString
-