/** * 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 prep time * * @return String prep time */ public String getReadablePrepTime() { if (recipe != null) { return readableTime(recipe.getPrepTime()); } else { return ""; } }