code: public void generatePotentialMenuTimes(TimeIncrement timeIncrement,
              LocalTime optionalStartTime, LocalTime optionalEndTime) {
          // If either bounding time does does not already exist, then set it to the maximum range.
          LocalTime startTime = (optionalStartTime == null) ? LocalTime.MIN : optionalStartTime;
          LocalTime endTime = (optionalEndTime == null) ? LocalTime.MAX : optionalEndTime;
          // Initialize our needed variables.
          potentialMenuTimes = new ArrayList<LocalTime>();
          int increment = timeIncrement.minutes;
          // Start at midnight, which is the earliest time of day for LocalTime values.
          LocalTime entry = LocalTime.MIDNIGHT;
          boolean continueLoop = true;
          while (continueLoop) {
              if (PickerUtilities.isLocalTimeInRange(entry, startTime, endTime, true)) {
                  potentialMenuTimes.add(entry);
              }
              entry = entry.plusMinutes(increment);
              // Note: This stopping criteria works as long as as ((60 % increment) == 0).
              continueLoop = (!(LocalTime.MIDNIGHT.equals(entry)));
          }
      }
docs: generatePotentialMenuTimes, This will generate a list of menu times for populating the combo
  box menu, using a TimePickerSettings.TimeIncrement value. The menu times will always start at
  Midnight, and increase according to the increment until the last time before 11:59pm.
  
  Note: This function can be called before or after setting an optional veto policy. Vetoed
  times will never be added to the time picker menu, regardless of whether they are generated
  by this function.
  
  Example usage: generatePotentialMenuTimes(TimeIncrement.FifteenMinutes);
  
  Number of entries: If no veto policy has been created, the number of entries in the drop down
  menu would be determined by the size of the increment as follows; FiveMinutes has 288
  entries. TenMinutes has 144 entries. FifteenMinutes has 96 entries. TwentyMinutes has 72
  entries. ThirtyMinutes has 48 entries. OneHour has 24 entries.