Interface BiSemigroupFactory<A,​B,​C>

    • Method Detail

      • checkedApply

        Semigroup<C> checkedApply​(A a,
                                  B b)
                           throws java.lang.Throwable
        Description copied from interface: Fn3
        Specified by:
        checkedApply in interface Fn2<A,​B,​C>
        Specified by:
        checkedApply in interface Fn3<A,​B,​C,​Fn1<C,​C>>
        Throws:
        java.lang.Throwable
      • checkedApply

        default C checkedApply​(A a,
                               B b,
                               C c,
                               C d)
                        throws java.lang.Throwable
        Specified by:
        checkedApply in interface Fn4<A,​B,​C,​C,​C>
        Throws:
        java.lang.Throwable
      • apply

        default Semigroup<C> apply​(A a,
                                   B b)
        Description copied from interface: Fn4
        Partially apply this function by taking its first two arguments.
        Specified by:
        apply in interface Fn2<A,​B,​C>
        Specified by:
        apply in interface Fn3<A,​B,​C,​Fn1<C,​C>>
        Specified by:
        apply in interface Fn4<A,​B,​C,​C,​C>
        Parameters:
        a - the first argument
        b - the second argument
        Returns:
        an Fn2<C, D, E>
      • apply

        default SemigroupFactory<B,​C> apply​(A a)
        Description copied from interface: Fn4
        Partially apply this function by taking its first argument.
        Specified by:
        apply in interface Fn1<A,​B>
        Specified by:
        apply in interface Fn2<A,​B,​C>
        Specified by:
        apply in interface Fn3<A,​B,​C,​Fn1<C,​C>>
        Specified by:
        apply in interface Fn4<A,​B,​C,​C,​C>
        Parameters:
        a - the first argument
        Returns:
        an Fn3<B, C, D, E>
      • flip

        default BiSemigroupFactory<B,​A,​C> flip()
        Description copied from interface: Fn4
        Flip the order of the first two arguments.
        Specified by:
        flip in interface Fn2<A,​B,​C>
        Specified by:
        flip in interface Fn3<A,​B,​C,​Fn1<C,​C>>
        Specified by:
        flip in interface Fn4<A,​B,​C,​C,​C>
        Returns:
        an Fn4<B, A, C, D, E>
      • uncurry

        default SemigroupFactory<? super Product2<? extends A,​? extends B>,​C> uncurry()
        Description copied from interface: Fn4
        Returns an Fn3 that takes the first two arguments as a Product2<A, B> and the third and fourth arguments.
        Specified by:
        uncurry in interface Fn2<A,​B,​C>
        Specified by:
        uncurry in interface Fn3<A,​B,​C,​Fn1<C,​C>>
        Specified by:
        uncurry in interface Fn4<A,​B,​C,​C,​C>
        Returns:
        an Fn3 taking a Product2 and the third and fourth arguments