docs: public int getValue(int index) {
          switch (index) {
              case YEAR:
                  return getChronology().year().get(getLocalMillis());
              case MONTH_OF_YEAR:
                  return getChronology().monthOfYear().get(getLocalMillis());
              case DAY_OF_MONTH:
                  return getChronology().dayOfMonth().get(getLocalMillis());
              case MILLIS_OF_DAY:
                  return getChronology().millisOfDay().get(getLocalMillis());
              default:
                  throw new IndexOutOfBoundsException("Invalid index: " + index);
          }
      }