org.broadleafcommerce.common.util
Class TypedPredicate<T>

java.lang.Object
  extended by org.broadleafcommerce.common.util.TypedPredicate<T>
Type Parameters:
T - the type of object the predicate uses
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public abstract class TypedPredicate<T>
extends Object
implements org.apache.commons.collections.Predicate

A class that provides for a typed predicat

Author:
Andre Azzolini (apazzolini)

Field Summary
protected  Class<T> clazz
           
 
Constructor Summary
TypedPredicate()
           
 
Method Summary
abstract  boolean eval(T value)
           
 boolean evaluate(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

protected Class<T> clazz
Constructor Detail

TypedPredicate

public TypedPredicate()
Method Detail

evaluate

public boolean evaluate(Object value)
Specified by:
evaluate in interface org.apache.commons.collections.Predicate

eval

public abstract boolean eval(T value)


Copyright © 2013. All Rights Reserved.