- All Implemented Interfaces:
IFilter<T>
@Scriptable
public final class NegationFilter<T>
extends Object
implements IFilter<T>
-
Constructor Summary
Constructors
-
Method Summary
boolean
void
Set the filter to be negated.
-
Constructor Details
-
NegationFilter
public NegationFilter()
-
NegationFilter
public NegationFilter(IFilter<T> p_filter)
-
Method Details
-
setFilter
public void setFilter(IFilter<T> p_filter)
Set the filter to be negated.
- Parameters:
p_filter
- The filter to be negated.
-
accept
public boolean accept(T p_obj)
- Specified by:
accept
in interface IFilter<T>
- Parameters:
p_obj
- The object to be filtered.
- Returns:
true
if the negated filter returns false
,
or false
if the negated filter returns true
.