net.m2technologies.open_arm.utilities.collections
Class NegativePredicate

java.lang.Object
  extended bynet.m2technologies.open_arm.utilities.collections.NegativePredicate

public class NegativePredicate
extends java.lang.Object

Implementation of Predicate to negate a predicate given in the constructor. This predicate can be used to get a set of elements which don't fulfill a given predicate. If possible, use CollectionUtils#selectRejected instead.

Version:
$Revision: 1.10 $ vom $Modtime: Jul 13 2005 13:15:44 $
Author:
Peter Koßek, Matthias Laube

Field Summary
protected  Predicate predicateToNegate
           
 
Constructor Summary
NegativePredicate(Predicate predicateToNegate)
           
 
Method Summary
 boolean evaluate(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

predicateToNegate

protected Predicate predicateToNegate
Constructor Detail

NegativePredicate

public NegativePredicate(Predicate predicateToNegate)
Method Detail

evaluate

public boolean evaluate(java.lang.Object o)