コード例 #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 "";
   }
 }