Class NullSafeFunction<F,T>
- java.lang.Object
-
- org.jenkinsci.plugins.github.util.misc.NullSafeFunction<F,T>
-
- All Implemented Interfaces:
com.google.common.base.Function<F,T>
,Function<F,T>
- Direct Known Subclasses:
GitHubLoginFunction
public abstract class NullSafeFunction<F,T> extends Object implements com.google.common.base.Function<F,T>
This abstract class callsapplyNullSafe(Object)
only after success validation of inner object for null- Author:
- lanwen (Merkushev Kirill)
-
-
Constructor Summary
Constructors Constructor Description NullSafeFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
apply(F input)
protected abstract T
applyNullSafe(F input)
This method will be called inside ofapply(Object)
-