org.shapelogic.filter
Class NotFilter<BaseClass,Element>

java.lang.Object
  extended by org.shapelogic.filter.BaseFilter<BaseClass,Element>
      extended by org.shapelogic.filter.NotFilter<BaseClass,Element>
All Implemented Interfaces:
org.apache.commons.collections.Predicate, IFilter<BaseClass,Element>

public class NotFilter<BaseClass,Element>
extends BaseFilter<BaseClass,Element>

Similar to NotPredicate filter has to be false for this to be true

Author:
Sami Badawi

Field Summary
protected  IFilter<BaseClass,Element> _filter1
           
 
Fields inherited from class org.shapelogic.filter.BaseFilter
_collection, _constraint, _parent
 
Constructor Summary
NotFilter()
           
NotFilter(IFilter<BaseClass,Element> filter1)
           
 
Method Summary
 boolean evaluate(java.lang.Object arg0)
           
 void setup()
           
 
Methods inherited from class org.shapelogic.filter.BaseFilter
filter, getCollection, getConstraint, getParent, setCollection, setConstraint, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_filter1

protected IFilter<BaseClass,Element> _filter1
Constructor Detail

NotFilter

public NotFilter()

NotFilter

public NotFilter(IFilter<BaseClass,Element> filter1)
Method Detail

evaluate

public boolean evaluate(java.lang.Object arg0)
Specified by:
evaluate in interface org.apache.commons.collections.Predicate
Specified by:
evaluate in class BaseFilter<BaseClass,Element>

setup

public void setup()
           throws java.lang.Exception
Specified by:
setup in interface IFilter<BaseClass,Element>
Overrides:
setup in class BaseFilter<BaseClass,Element>
Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.