Interface IntIntDoubleFunc<R>

  • Type Parameters:
    R - The type of the function-output.
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface IntIntDoubleFunc<R>
    Function-Pointer Input: int, int, double Output: R.

    Primitive's Extension to Java's java.util.function.* package.

    This FunctionalInterface has an apply(...) method which accepts three primitives: two int-primitives, and one double.

    • Method Summary

      @FunctionalInterface: (Lambda) Method
      Modifier and Type Method
      R apply​(int i1, int i2, double d)
      Default Composition & Builder Method(s)
      Modifier and Type Method
      default <V> IntIntDoubleFunc<V> andThen​(Function<R,​V> after)
    • Method Detail

      • apply

        🡇     🗕  🗗  🗖
        R apply​(int i1,
                int i2,
                double d)
        Applies a user-provided function to input aruments, returning a result of type R

        FunctionalInterface Target-Method:
        This method corresponds to the @FunctionalInterface Annotation's method requirement. It is the only non-default, non-static method in this interface, and may be the target of a Lambda-Expression or '::' (double-colon) Function-Pointer.
        i1 - The first integer-parameter.
        i2 - The second integer-parameter.
        d - A 'double' parameter.
        The function result. Result shall be of type 'R'
      • andThen

        🡅     🗕  🗗  🗖
        default <V> IntIntDoubleFunc<V> andThen​
                    (java.util.function.Function<R,​V> after)
        Returns a composed function that first applies 'this' function to its input, and then applies the 'after' function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the composed function.
        Type Parameters:
        V - The output-type of the 'after' function, and also of the (returned) 'composed' function.
        after - The function to apply, after this function is applied.
        java.lang.NullPointerException - This throws if null is passed to 'after'.
        Exact Method Body:
         if (after == null) throw new NullPointerException
             ("null has been passed to parameter 'after'");
         return (int i1, int i2, double d) -> after.apply(this.apply(i1, i2, d));