class MathUtils {

    public static boolean isNumeric( String value )
    {
        return value != null && DOUBLE_VALIDATOR.isValid( value, LOCALE ) &&
            NUMERIC_PATTERN.matcher( value ).matches() && value.length() < NUMBER_MAX_LENGTH;
    }

}