예제 #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 "";
   }
 }
예제 #2
0
 /**
  * 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 "";
   }
 }