src/main/java/seedu/address/model/calorie/CalorieCount.java
/**
     * Returns true if the test is a valid calorieCount input
     * @param test string input to be tested
     */
Returns true if the test is a valid calorieCount input
@param test string input to be tested
Returns true if the test is a valid calorieCount input @param test string input to be tested
public static boolean isValidCalorieCount(String test) {
        requireNonNull(test);
        try {
            Integer.parseInt(test);
        } catch (NumberFormatException e) {
            return false;
        }
        return test.matches(VALIDATION_REGEX);
    }
public static boolean isValidCalorieCount ( String test ) { requireNonNull ( test ) ; try { Integer . parseInt ( test ) ; } catch ( NumberFormatException e ) { return false ; } return test . matches ( VALIDATION_REGEX ) ; }
Returns true if the test is a valid calorieCount input
 @param test string input to be tested
Returns true if the test is a valid calorieCount input @param test string input to be tested