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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected abstract booleanapplyNullSafe(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, waitMethods inherited from interface com.google.common.base.Predicate
equals, test
-
Constructor Details
-
NullSafePredicate
public NullSafePredicate()
-
-
Method Details
-
apply
- Specified by:
applyin interfacecom.google.common.base.Predicate<T>
-
applyNullSafe
This method will be called inside ofapply(Object)
-