Class IncludeExcludeSet<T,P>

java.lang.Object
org.eclipse.jetty.util.IncludeExcludeSet<T,P>
Type Parameters:
T - The type of element of the set (often a pattern)
P - The type of the instance passed to the predicate
All Implemented Interfaces:
Predicate<P>
Direct Known Subclasses:
IncludeExclude

public class IncludeExcludeSet<T,P> extends Object implements Predicate<P>
Utility class to maintain a set of inclusions and exclusions.

Maintains a set of included and excluded elements. The method test(Object) will return true IFF the passed object is not in the excluded set AND ( either the included set is empty OR the object is in the included set)

The type of the underlying Set used may be passed into the constructor, so special sets like Servlet PathMap may be used.