net.sf.doolin.util.collection
Class PropertyPredicate<E>

java.lang.Object
  extended by net.sf.doolin.util.collection.PropertyPredicate<E>
Type Parameters:
E - Type of object to compare
All Implemented Interfaces:
com.google.common.base.Predicate<E>

public class PropertyPredicate<E>
extends Object
implements com.google.common.base.Predicate<E>

Evaluates a property value against a predefined value

Author:
Damien Coraboeuf

Constructor Summary
PropertyPredicate(String propertyPath, Object propertyValue)
          Constructor
 
Method Summary
 boolean apply(E e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Constructor Detail

PropertyPredicate

public PropertyPredicate(String propertyPath,
                         Object propertyValue)
Constructor

Parameters:
propertyPath - Path to the property
propertyValue - Property value to compare to
See Also:
Utils.getProperty(Object, String)
Method Detail

apply

public boolean apply(E e)
Specified by:
apply in interface com.google.common.base.Predicate<E>


Copyright © 2011. All Rights Reserved.