code: protected final void setDerivedEndType() {
  
          m_endType = getPatternType().equals(PatternType.NONE) || getPatternType().equals(PatternType.INDIVIDUAL)
          ? EndType.SINGLE
          : null != getSeriesEndDate() ? EndType.DATE : EndType.TIMES;
      }
docs: Set the end type as derived from other values.