Interface SemigroupFactory<A,​B>

    • Method Detail

      • checkedApply

        Semigroup<B> checkedApply​(A a)
                           throws java.lang.Throwable
        Description copied from interface: Fn2
        Invoke this function with the given argument, potentially throwing any Throwable.
        Specified by:
        checkedApply in interface Fn1<A,​B>
        Specified by:
        checkedApply in interface Fn2<A,​B,​Fn1<B,​B>>
        Parameters:
        a - the argument
        Returns:
        the result of the function application
        Throws:
        java.lang.Throwable - anything possibly thrown by the function
      • apply

        default Semigroup<B> apply​(A a)
        Description copied from interface: Fn3
        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,​Fn1<B,​B>>
        Specified by:
        apply in interface Fn3<A,​B,​B,​B>
        Parameters:
        a - the first argument
        Returns:
        an Fn2<B, C, D>
      • checkedApply

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