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