/** * Returns a human-readable string representation of the total time * * @return String total time */ public String getTotalTime() { if (recipe != null) { return readableTime(recipe.getCookTime() + recipe.getPrepTime()); } else { return ""; } }
/** * Returns a human-readable string representation of the cook time * * @return String cook time */ public String getReadableCookTime() { if (recipe != null) { return readableTime(recipe.getCookTime()); } else { return ""; } }