public static void finite(final double value, final String message, final Object... values) {
        if (Double.isNaN(value) || Double.isInfinite(value)) {
            throw new IllegalArgumentException(String.format(message, values));
        }
    }
<p>Validates that the specified argument is not infinite or {@code NaN};
otherwise throwing an exception with the specified message.</p>

<pre>Validate.finite(myDouble, "The argument must contain a numeric value");</pre>

@param value the value to validate
@param message  the {@link String#format(String, Object...)} exception message if invalid, not null
@param values  the optional values for the formatted exception message
@throws IllegalArgumentException if the value is infinite or {@code NaN}
@see #finite(double)

@since 3.5
replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/replugin/utils/Validate.java