Class Function2<A,B,C>

java.lang.Object
org.opencastproject.util.data.Function2<A,B,C>
Direct Known Subclasses:
Effect2, Function2.X

public abstract class Function2<A,B,C> extends Object
Function of arity 2.
See Also:
  • Constructor Details

    • Function2

      public Function2()
  • Method Details

    • apply

      public abstract C apply(A a, B b)
      Apply function to a and b.
    • curry

      public Function<B,C> curry(A a)
      Currying.
    • curry

      public Function<A,Function<B,C>> curry()
      Currying. (a, b) -> c => a -> b -> c
    • flip

      public Function2<B,A,C> flip()
      Argument flipping.