Ejemplo n.º 1
0
 /**
  * Adjusts a time to have the the minute-of-hour represented by this object, returning a new time.
  *
  * <p>Only the minute-of-hour field is adjusted in the result. The other time fields are
  * unaffected.
  *
  * <p>This instance is immutable and unaffected by this method call.
  *
  * @param time the time to be adjusted, not null
  * @return the adjusted time, never null
  */
 public LocalTime adjustTime(LocalTime time) {
   return time.withMinuteOfHour(minuteOfHour);
 }