Interface BinaryFunction<N extends java.lang.Comparable<N>>

    • Method Detail

      • apply

        default N apply​(N arg1,
                        N arg2)
        Specified by:
        apply in interface java.util.function.BiFunction<N extends java.lang.Comparable<N>,​N extends java.lang.Comparable<N>,​N extends java.lang.Comparable<N>>
        See Also:
        BiFunction.apply(java.lang.Object, java.lang.Object)
      • applyAsDouble

        default double applyAsDouble​(double arg1,
                                     double arg2)
        Specified by:
        applyAsDouble in interface java.util.function.DoubleBinaryOperator
        See Also:
        DoubleBinaryOperator.applyAsDouble(double, double)
      • first

        default UnaryFunction<N> first​(N arg1)
        Turns this binary function into a unary function with the first argument fixed/locked to the specified value.
        Parameters:
        arg1 - The first argument of the binary function.
        Returns:
        The resulting unary function.
      • invoke

        default byte invoke​(byte arg1,
                            byte arg2)
      • invoke

        double invoke​(double arg1,
                      double arg2)
      • invoke

        default float invoke​(float arg1,
                             float arg2)
      • invoke

        default int invoke​(int arg1,
                           int arg2)
      • invoke

        default long invoke​(long arg1,
                            long arg2)
      • invoke

        N invoke​(N arg1,
                 double arg2)
      • invoke

        N invoke​(N arg1,
                 N arg2)
      • invoke

        default short invoke​(short arg1,
                             short arg2)
      • second

        default UnaryFunction<N> second​(N arg2)
        Turns this binary function into a unary function with the second argument fixed/locked to the specified value.
        Parameters:
        arg2 - The second argument of the binary function.
        Returns:
        The resulting unary function.