Interface BooleanToDoubleFunction

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface BooleanToDoubleFunction
    Functional interface describing a method that given a boolean returns a double.
    Since:
    1.0.5
    Author:
    Emil Forslund
    • Method Detail

      • applyAsDouble

        double applyAsDouble​(boolean value)
        Applies this function on the specified boolean, returning a double.
        Parameters:
        value - the input value
        Returns:
        the output