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 calls
applyNullSafe(Object)
only after success validation of inner object for null- Author:
- lanwen (Merkushev Kirill)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected abstract boolean
applyNullSafe
(T input) This method will be called inside ofapply(Object)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.base.Predicate
equals, test
-
Constructor Details
-
NullSafePredicate
public NullSafePredicate()
-
-
Method Details
-
apply
- Specified by:
apply
in interfacecom.google.common.base.Predicate<T>
-
applyNullSafe
This method will be called inside ofapply(Object)
-