Class RightIdentity

java.lang.Object
org.apache.commons.functor.core.RightIdentity

public final class RightIdentity extends Object
Holder class for a right-identity BinaryFunction (evaluates to the right argument) and a right-identity BinaryPredicate (tests whether right Boolean argument equals Boolean.TRUE).
Version:
$Revision$ $Date$
  • Field Details

  • Constructor Details

    • RightIdentity

      public RightIdentity()
      Create a new RightIdentity.
  • Method Details

    • function

      public static <L,R> BinaryFunction<L,R,R> function()
      Get a typed right-identity BinaryFunction.
      Type Parameters:
      L - the left argument type.
      R - the right argument type.
      Returns:
      BinaryFunctioninvalid input: '<'L, R, R>
    • predicate

      public static <L> BinaryPredicate<L,Boolean> predicate()
      Get a typed right-identity BinaryPredicate.
      Type Parameters:
      L - the left argument type.
      Returns:
      BinaryPredicateinvalid input: '<'L, Boolean>