/** * Instantiates a new gMonthDay given the value of the month and the value of the day. * * @param month the month value * @param day the day value */ public GMonthDay(short month, short day) { setMonth(month); setDay(day); }
/** * Instantiates a new gMonthDay given the value of the month and the value of the day. * * @param month the month value * @param day the day value */ public GMonthDay(int month, int day) { setMonth((short) month); setDay((short) day); }
/** * Instantiates a new gMonthDay given the value * of the month and the value of the day. * @param month the month value * @param day the day value */ public GMonthDay(short month, short day) { setMonth(month); setDay(day); }
/** * Instantiates a new gMonthDay given the value * of the month and the value of the day. * @param month the month value * @param day the day value */ public GMonthDay(int month, int day) { setMonth((short)month); setDay((short)day); }
/** * Sets all the fields by reading the values in an array * <p> * if a Time Zone is specificied it has to be set by using * {@link DateTimeBase#setZone(short, short) setZone}. * * @param values an array of shorts with the values the array is supposed to be of length 2 and * ordered like the following: * <ul> * <li>Month</li> * <li>Day</li> * </ul> */ public void setValues(short[] values) { if (values.length != 2) { throw new IllegalArgumentException("GMonthDay#setValues: not the right number of values"); } this.setMonth(values[0]); this.setDay(values[1]); }
/** * Sets all the fields by reading the values in an array * <p>if a Time Zone is specificied it has to be set by using * {@link DateTimeBase#setZone(short, short) setZone}. * @param values an array of shorts with the values * the array is supposed to be of length 2 and ordered like * the following: * <ul> * <li>Month</li> * <li>Day</li> * </ul> */ public void setValues(short[] values) { if (values.length != 2) { throw new IllegalArgumentException("GMonthDay#setValues: not the right number of values"); } this.setMonth(values[0]); this.setDay(values[1]); }
result.setDay(value1);
result.setDay(value1);
GMonthDay temp = GMonthDay.parseGMonthDay(value.toString()); gMonthDayTarget.setMonth(temp.getMonth()); gMonthDayTarget.setDay(temp.getDay()); if (temp.isUTC()) { gMonthDayTarget.setUTC();
GMonthDay temp = GMonthDay.parseGMonthDay(value.toString()) ; gMonthDayTarget.setMonth(temp.getMonth()); gMonthDayTarget.setDay(temp.getDay()); if (temp.isUTC()) { gMonthDayTarget.setUTC();