Package org.jboss.modules.filter
Class SetPathFilter
- java.lang.Object
-
- org.jboss.modules.filter.SetPathFilter
-
- All Implemented Interfaces:
PathFilter
final class SetPathFilter extends java.lang.Object implements PathFilter
-
-
Constructor Summary
Constructors Constructor Description SetPathFilter(java.util.Set<java.lang.String> paths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.lang.String path)Determine whether a path should be accepted.booleanequals(java.lang.Object obj)Determine whether this filter is equal to another.booleanequals(SetPathFilter obj)inthashCode()Calculate a unique hash code for this path filter.java.lang.StringtoString()
-
-
-
Method Detail
-
accept
public boolean accept(java.lang.String path)
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
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 classjava.lang.Object- Parameters:
obj- the other object- Returns:
trueif this filter is the same
-
equals
public boolean equals(SetPathFilter obj)
-
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 classjava.lang.Object- Returns:
- the hash code
-
-