net.sf.staccatocommons.lang.predicate
Class AbstractPredicate2.Soft<A,B>
java.lang.Object
net.sf.staccatocommons.lang.predicate.AbstractPredicate2<A,B>
net.sf.staccatocommons.lang.predicate.AbstractPredicate2.Soft<A,B>
- Type Parameters:
A - the type of the first argumentB - the type of the second argument
- All Implemented Interfaces:
- net.sf.staccatocommons.defs.Applicable<A,net.sf.staccatocommons.defs.predicate.Predicate<B>>, net.sf.staccatocommons.defs.Applicable2<A,B,Boolean>, net.sf.staccatocommons.defs.Evaluable2<A,B>, net.sf.staccatocommons.defs.partial.NullSafeAware<net.sf.staccatocommons.defs.predicate.Predicate2<A,B>>, net.sf.staccatocommons.defs.predicate.Predicate2<A,B>
- Enclosing class:
- AbstractPredicate2<A,B>
public abstract static class AbstractPredicate2.Soft<A,B>
- extends AbstractPredicate2<A,B>
AbstractPredicate2 that handles exceptions by softening them using
SoftException.soften(Throwable)
- Author:
- flbulgarelli
|
Method Summary |
boolean |
eval(A arg0,
B arg1)
|
protected abstract boolean |
softEval(A arg,
B arg1)
Evaluates this predicate, potentially throwing a checked exception |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPredicate2.Soft
public AbstractPredicate2.Soft()
eval
public final boolean eval(A arg0,
B arg1)
softEval
protected abstract boolean softEval(A arg,
B arg1)
throws Throwable
- Evaluates this predicate, potentially throwing a checked exception
- Throws:
Throwable- See Also:
Evaluable2.eval(Object, Object)
Copyright © 2010-2012 Staccatocommons. All Rights Reserved.