net.sf.staccatocommons.lang.function
Class AbstractFunction.Soft<A,B>
java.lang.Object
net.sf.staccatocommons.lang.function.AbstractDelayable<A,B>
net.sf.staccatocommons.lang.function.AbstractFunction<A,B>
net.sf.staccatocommons.lang.function.AbstractFunction.Soft<A,B>
- Type Parameters:
A - function argument typeB - 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
|
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 interface net.sf.staccatocommons.defs.Delayable |
delayed, delayedValue |
AbstractFunction.Soft
public AbstractFunction.Soft()
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.