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

java.lang.Object
org.apache.commons.functor.core.composite.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:
Serializable, BinaryFunctor<L,R>, BinaryPredicate<L,R>, Functor
Enclosing class:
UnaryCompositeBinaryPredicate<L,R>

private static class UnaryCompositeBinaryPredicate.Helper<G,H,L,R> extends Object implements BinaryPredicate<L,R>, Serializable
Internal helper.
Version:
$Revision$ $Date$
  • Field Details

    • serialVersionUID

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

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

      private UnaryFunction<? super L, ? extends G> g
      left UnaryFunction.
    • h

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

    • 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 Details

    • 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