Interface RangeBiFunction<T,​U,​R>

  • Type Parameters:
    T - the type of the first argument to the function
    U - the type of the second argument to the function
    R - the type of the result of the function
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    interface RangeBiFunction<T,​U,​R>
    Represents a function that accepts two objects and a range and produces a result.

    This interface is similar to BiFunction with the addition of a range [from, to) argument to the functional method.

    • Method Detail

      • apply

        R apply​(T t,
                U u,
                int from,
                int to)
        Applies this function to the given arguments.
        Parameters:
        t - the function argument
        u - the second function argument
        from - Inclusive start of the range.
        to - Exclusive end of the range.
        Returns:
        the function result