Class UnaryCompositeBinaryPredicate.Helper<G,​H,​L,​R>

  • Type Parameters:
    G - right function type.
    H - right function type.
    L - left function type.
    R - left function type.
    All Implemented Interfaces:
    java.io.Serializable, BinaryFunctor<L,​R>, BinaryPredicate<L,​R>, Functor
    Enclosing class:
    UnaryCompositeBinaryPredicate<L,​R>

    private static class UnaryCompositeBinaryPredicate.Helper<G,​H,​L,​R>
    extends java.lang.Object
    implements BinaryPredicate<L,​R>, java.io.Serializable
    Internal helper.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private BinaryPredicate<? super G,​? super H> f
      BinaryPredicate to test output(f), output(g).
      private UnaryFunction<? super L,​? extends G> g
      left UnaryFunction.
      private UnaryFunction<? super R,​? extends H> h
      right UnaryFunction.
      private static long serialVersionUID
      serialVersionUID declaration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean test​(L left, R right)
      Evaluate this predicate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        serialVersionUID declaration.
        See Also:
        Constant Field Values
      • f

        private BinaryPredicate<? super G,​? super H> f
        BinaryPredicate to test output(f), output(g).
      • h

        private UnaryFunction<? super R,​? extends H> h
        right UnaryFunction.
    • Constructor Detail

      • Helper

        public Helper​(BinaryPredicate<? super G,​? super H> f,
                      UnaryFunction<? super L,​? extends G> g,
                      UnaryFunction<? super R,​? extends H> h)
        Create a new Helper.
        Parameters:
        f - BinaryPredicate to test output(f), output(g)
        g - left UnaryFunction
        h - right UnaryFunction
    • Method Detail

      • test

        public boolean test​(L left,
                            R right)
        Evaluate this predicate.
        Specified by:
        test in interface BinaryPredicate<G,​H>
        Parameters:
        left - the L element of the ordered pair of arguments
        right - the R element of the ordered pair of arguments
        Returns:
        the result of this test for the given arguments