org.ckkloverdos.filter
Class NotFilter

java.lang.Object
  extended by org.ckkloverdos.filter.NotFilter
All Implemented Interfaces:
IFilter

public class NotFilter
extends java.lang.Object
implements IFilter

An implementation of IFilter providing boolean NOT semantics for another filters.

Author:
Christos KK Loverdos

Constructor Summary
NotFilter(IFilter f)
          Contructs a new filter that negates the results of the provided filter f.
 
Method Summary
 boolean accept(java.lang.Object object, java.lang.Object hints)
          Tests if object is accepted according to this filter semantics (boolean NOT for the filter given in the constructor).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotFilter

public NotFilter(IFilter f)
Contructs a new filter that negates the results of the provided filter f.

Parameters:
f -
Method Detail

accept

public boolean accept(java.lang.Object object,
                      java.lang.Object hints)
Tests if object is accepted according to this filter semantics (boolean NOT for the filter given in the constructor).

Specified by:
accept in interface IFilter
Parameters:
object -
hints -


Copyright © 1999-2007 Christos KK Loverdos. All Rights Reserved.