code: private void setDatesInternal(SortedSet<Date> dates) {
  
          if (!m_dates.equals(dates)) {
              m_dates = new TreeSet<>(dates);
              fireValueChange();
          }
      }
docs: Updates the internal list of dates and fires a value change if necessary.
  
  @param dates the dates to set.