net.sf.doolin.util.collection
Class PropertyPredicate<E>
java.lang.Object
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
|
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 |
PropertyPredicate
public PropertyPredicate(String propertyPath,
Object propertyValue)
- Constructor
- Parameters:
propertyPath - Path to the propertypropertyValue - Property value to compare to- See Also:
Utils.getProperty(Object, String)
apply
public boolean apply(E e)
- Specified by:
apply in interface com.google.common.base.Predicate<E>
Copyright © 2011. All Rights Reserved.