Esempio n. 1
0
 /**
  * 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 "";
   }
 }
Esempio n. 2
0
 /**
  * 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 "";
   }
 }