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

java.lang.Object
  extended by net.sf.staccatocommons.lang.function.AbstractDelayable3<A,B,C,D>
      extended by net.sf.staccatocommons.lang.function.AbstractFunction3<A,B,C,D>
          extended by net.sf.staccatocommons.lang.function.AbstractFunction3.Soft<A,B,C,D>
Type Parameters:
A -
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.Function2<B,C,D>>, net.sf.staccatocommons.defs.Applicable2<A,B,net.sf.staccatocommons.defs.function.Function<C,D>>, net.sf.staccatocommons.defs.Applicable3<A,B,C,D>, net.sf.staccatocommons.defs.Delayable3<A,B,C,D>, net.sf.staccatocommons.defs.function.Function3<A,B,C,D>, net.sf.staccatocommons.defs.partial.NullSafeAware<net.sf.staccatocommons.defs.function.Function3<A,B,C,D>>
Enclosing class:
AbstractFunction3<A,B,C,D>

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

AbstractFunction3 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.AbstractFunction3
AbstractFunction3.Soft<A,B,C,D>
 
Constructor Summary
AbstractFunction3.Soft()
           
 
Method Summary
 D apply(A arg0, B arg1, C arg2)
           
protected abstract  D softApply(A arg0, B arg1, C arg2)
          Applies this function, potentially throwing a checked exception
 
Methods inherited from class net.sf.staccatocommons.lang.function.AbstractFunction3
apply, apply, nullSafe, toString, uncurry
 
Methods inherited from class net.sf.staccatocommons.lang.function.AbstractDelayable3
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.Delayable3
delayed, delayedValue
 

Constructor Detail

AbstractFunction3.Soft

public AbstractFunction3.Soft()
Method Detail

apply

public final D apply(A arg0,
                     B arg1,
                     C arg2)

softApply

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

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


Copyright © 2010-2012 Staccatocommons. All Rights Reserved.