de.uplanet.util.filter
Class NegationFilter<T>

java.lang.Object
  extended by de.uplanet.util.filter.NegationFilter<T>
All Implemented Interfaces:
IFilter<T>

@Scriptable
public final class NegationFilter<T>
extends java.lang.Object
implements IFilter<T>

Version:
$Revision: 73441 $

Constructor Summary
NegationFilter()
           
NegationFilter(IFilter<T> p_filter)
           
 
Method Summary
 boolean accept(T p_obj)
           
 void setFilter(IFilter<T> p_filter)
          Set the filter to be negated.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegationFilter

public NegationFilter()

NegationFilter

public NegationFilter(IFilter<T> p_filter)
Method Detail

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.


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.