net.sf.staccatocommons.lang.function
Class AbstractFunction2.Soft<A,B,C>
java.lang.Object
net.sf.staccatocommons.lang.function.AbstractDelayable2<A,B,C>
net.sf.staccatocommons.lang.function.AbstractFunction2<A,B,C>
net.sf.staccatocommons.lang.function.AbstractFunction2.Soft<A,B,C>
- Type Parameters:
A - function first argument typeB - function second argument typeC - 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
|
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 interface net.sf.staccatocommons.defs.Delayable2 |
delayed, delayedValue |
AbstractFunction2.Soft
public AbstractFunction2.Soft()
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.