ITEM
- The type of elementpublic class IncludeExclude<ITEM> extends Object
Maintains a set of included and excluded elements. The method matches(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.
Constructor and Description |
---|
IncludeExclude()
Default constructor over
HashSet |
IncludeExclude(Class<SET> setClass)
Construct an IncludeExclude
|
IncludeExclude(Set<ITEM> includeSet,
Predicate<ITEM> includePredicate,
Set<ITEM> excludeSet,
Predicate<ITEM> excludePredicate)
Construct an IncludeExclude
|
public IncludeExclude()
HashSet
public IncludeExclude(Class<SET> setClass)
setClass
- The type of Set
to using internallypredicate
- A predicate function to test if a passed ITEM is matched by the passed SET}public IncludeExclude(Set<ITEM> includeSet, Predicate<ITEM> includePredicate, Set<ITEM> excludeSet, Predicate<ITEM> excludePredicate)
includeSet
- the Set of items that represent the included spaceincludePredicate
- the Predicate for included item testing (null for simple Set.contains(Object)
test)excludeSet
- the Set of items that represent the excluded spaceexcludePredicate
- the Predicate for excluded item testing (null for simple Set.contains(Object)
test)Copyright © 1995-2016 Webtide. All Rights Reserved.