code: public void setCalculationType(CalculationType type) {
          cType = type;
  
          // ensure civil property is up-to-date
          if(cType == CalculationType.ISLAMIC_CIVIL)
              civil = true;
          else
              civil = false;
      }
docs: sets the calculation type for this calendar.