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

java.lang.Object
  extended by net.sf.staccatocommons.lang.function.AbstractDelayable<A,B>
      extended by net.sf.staccatocommons.lang.function.AbstractFunction<A,B>
          extended by net.sf.staccatocommons.lang.function.AbstractFunction.Soft<A,B>
Type Parameters:
A - function argument type
B - function return type
All Implemented Interfaces:
net.sf.staccatocommons.defs.Applicable<A,B>, net.sf.staccatocommons.defs.Delayable<A,B>, net.sf.staccatocommons.defs.function.Function<A,B>, net.sf.staccatocommons.defs.partial.NullSafeAware<net.sf.staccatocommons.defs.function.Function<A,B>>
Enclosing class:
AbstractFunction<A,B>

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

AbstractFunction 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.AbstractFunction
AbstractFunction.Soft<A,B>
 
Constructor Summary
AbstractFunction.Soft()
           
 
Method Summary
 B apply(A arg)
           
protected abstract  B softApply(A arg)
          Applies this function, potentially throwing a checked exception
 
Methods inherited from class net.sf.staccatocommons.lang.function.AbstractFunction
equal, isIdentity, notNull, null_, nullSafe, of, of, of, same, then, then, then, toString
 
Methods inherited from class net.sf.staccatocommons.lang.function.AbstractDelayable
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.Delayable
delayed, delayedValue
 

Constructor Detail

AbstractFunction.Soft

public AbstractFunction.Soft()
Method Detail

apply

public final B apply(A arg)

softApply

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

Throws:
Throwable
See Also:
Applicable.apply(Object)


Copyright © 2010-2012 Staccatocommons. All Rights Reserved.