/** * returns a recurringDuration with the facets duration and period set up but also the fields * * @param duration the String representing the duration facet * @param period the String reprensenting the period facet * @param values an array of shorts which contains the values of the fields * @see #setValues */ public RecurringDuration(String duration, String period, short[] values) throws UnsupportedOperationException { this(duration, period); if (values.length != 10) { throw new IllegalArgumentException("Wrong numbers of values"); } this.setValues(values); }
/** * returns a recurringDuration with the facets * duration and period set up but also the fields * @param duration the String representing the duration facet * @param period the String reprensenting the period facet * @param values an array of shorts which contains the values of the fields * @see #setValues */ public RecurringDuration(String duration, String period, short[] values) throws UnsupportedOperationException { this(duration, period); if (values.length != 10) { throw new IllegalArgumentException("Wrong numbers of values"); } this.setValues(values); }