net.sf.staccatocommons.lang.function
Class AbstractFunction2.Soft<A,B,C>

java.lang.Object
  extended by net.sf.staccatocommons.lang.function.AbstractDelayable2<A,B,C>
      extended by net.sf.staccatocommons.lang.function.AbstractFunction2<A,B,C>
          extended by net.sf.staccatocommons.lang.function.AbstractFunction2.Soft<A,B,C>
Type Parameters:
A - function first argument type
B - function second argument type
C - function return type
All Implemented Interfaces:
net.sf.staccatocommons.defs.Applicable<A,net.sf.staccatocommons.defs.function.Function<B,C>>, net.sf.staccatocommons.defs.Applicable2<A,B,C>, net.sf.staccatocommons.defs.Delayable2<A,B,C>, net.sf.staccatocommons.defs.function.Function2<A,B,C>, net.sf.staccatocommons.defs.partial.NullSafeAware<net.sf.staccatocommons.defs.function.Function2<A,B,C>>
Enclosing class:
AbstractFunction2<A,B,C>

public abstract static class AbstractFunction2.Soft<A,B,C>
extends AbstractFunction2<A,B,C>

AbstractFunction2 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.function.AbstractFunction2
AbstractFunction2.Soft<A,B,C>
 
Constructor Summary
AbstractFunction2.Soft()
           
 
Method Summary
 C apply(A arg0, B arg1)
           
protected abstract  C softApply(A arg0, B arg1)
          Applies this function, potentially throwing a checked exception
 
Methods inherited from class net.sf.staccatocommons.lang.function.AbstractFunction2
apply, flip, nullSafe, of, then, then, toString, uncurry
 
Methods inherited from class net.sf.staccatocommons.lang.function.AbstractDelayable2
delayed, delayedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.staccatocommons.defs.Delayable2
delayed, delayedValue
 

Constructor Detail

AbstractFunction2.Soft

public AbstractFunction2.Soft()
Method Detail

apply

public final C apply(A arg0,
                     B arg1)

softApply

protected abstract C softApply(A arg0,
                               B arg1)
                        throws Throwable
Applies this function, potentially throwing a checked exception

Throws:
Throwable
See Also:
Function2.apply(Object, Object)


Copyright © 2010-2012 Staccatocommons. All Rights Reserved.