net.sf.staccatocommons.lang.predicate
Class AbstractPredicate2.Soft<A,B>

java.lang.Object
  extended by net.sf.staccatocommons.lang.predicate.AbstractPredicate2<A,B>
      extended by net.sf.staccatocommons.lang.predicate.AbstractPredicate2.Soft<A,B>
Type Parameters:
A - the type of the first argument
B - 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

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.staccatocommons.lang.predicate.AbstractPredicate2
AbstractPredicate2.NullSafePredicate2, AbstractPredicate2.Soft<A,B>
 
Constructor Summary
AbstractPredicate2.Soft()
           
 
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 net.sf.staccatocommons.lang.predicate.AbstractPredicate2
and, apply, apply, not, nullSafe, or, uncurry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPredicate2.Soft

public AbstractPredicate2.Soft()
Method Detail

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.