Class NullSafePredicate<T>

  • All Implemented Interfaces:<T>, Predicate<T>

    public abstract class NullSafePredicate<T>
    extends Object
    This abstract class calls applyNullSafe(Object) only after success validation of inner object for null
    lanwen (Merkushev Kirill)
    • Constructor Detail

      • NullSafePredicate

        public NullSafePredicate()
    • Method Detail

      • apply

        public boolean apply​(T input)
        Specified by:
        apply in interface<T>
      • applyNullSafe

        protected abstract boolean applyNullSafe​(@NonNull
                                                 T input)
        This method will be called inside of apply(Object)