code: public void setMinimalDaysInFirstWeek(int value)
      {
          // Values less than 1 have the same effect as 1; values greater
          // than 7 have the same effect as 7. However, we normalize values
          // so operator== and so forth work.
          if (value < 1) {
              value = 1;
          } else if (value > 7) {
              value = 7;
          }
          if (minimalDaysInFirstWeek != value) {
              minimalDaysInFirstWeek = value;
              areFieldsSet = false;
          }
      }
docs: Sets what the minimal days required in the first week of the year are.
  For example, if the first week is defined as one that contains the first
  day of the first month of a year, call the method with value 1. If it
  must be a full week, use value 7.
  @param value the given minimal days required in the first week
  of the year.