Package dev.nm.number

Interface DoubleUtils.which

  • Enclosing class:
    DoubleUtils

    public static interface DoubleUtils.which
    Decide whether x satisfies the boolean test.
    • Method Detail

      • isTrue

        boolean isTrue​(double x,
                       int index)
        Decide whether x is to be selected.
        Parameters:
        x - a number
        index - to index of x. Ignore index if you care only the value of x and not its position.
        Returns:
        true if which({x}, ...) = {x}