/** * Applies the specified timezone to all dates in the list. * All dates added to this list will also have this timezone * applied. * @param timeZone the timezone for the period list */ public final void setTimeZone(final TimeZone timeZone) { for (final Period period : this) { period.setTimeZone(timeZone); } this.timezone = timeZone; this.utc = false; }
/** * Applies the specified timezone to all dates in the list. * All dates added to this list will also have this timezone * applied. * @param timeZone the timezone for the period list */ public final void setTimeZone(final TimeZone timeZone) { for (final Period period : this) { period.setTimeZone(timeZone); } this.timezone = timeZone; this.utc = false; }
/** * Applies the specified timezone to all dates in the list. * All dates added to this list will also have this timezone * applied. * @param timeZone the timezone for the period list */ public final void setTimeZone(final TimeZone timeZone) { for (final Period period : this) { period.setTimeZone(timeZone); } this.timezone = timeZone; this.utc = false; }
/** * Applies the specified timezone to all dates in the list. * All dates added to this list will also have this timezone * applied. * @param timeZone the timezone for the period list */ public final void setTimeZone(final TimeZone timeZone) { for (final Period period : this) { period.setTimeZone(timeZone); } this.timezone = timeZone; this.utc = false; }
/** * Applies the specified timezone to all dates in the list. * All dates added to this list will also have this timezone * applied. * @param timeZone the timezone for the period list */ public final void setTimeZone(final TimeZone timeZone) { for (final Iterator i = iterator(); i.hasNext();) { final Period period = (Period) i.next(); period.setTimeZone(timeZone); } this.timezone = timeZone; this.utc = false; }
/** * Add a period to the list. * * @param period * the period to add * @return true * @see java.util.List#add(java.lang.Object) */ public final boolean add(final Period period) { if (isUtc()) { period.setUtc(true); } else { period.setTimeZone(timezone); } return periods.add(period); }
/** * Add a period to the list. * * @param period * the period to add * @return true * @see java.util.List#add(java.lang.Object) */ public final boolean add(final Period period) { if (isUtc()) { period.setUtc(true); } else { period.setTimeZone(timezone); } return periods.add(period); }
/** * Add a period to the list. * * @param period * the period to add * @return true * @see java.util.List#add(java.lang.Object) */ public final boolean add(final Period period) { if (isUtc()) { period.setUtc(true); } else { period.setTimeZone(timezone); } return periods.add(period); }
/** * Add a period to the list. * * @param period * the period to add * @return true * @see java.util.List#add(java.lang.Object) */ public final boolean add(final Period period) { if (isUtc()) { period.setUtc(true); } else { period.setTimeZone(timezone); } return periods.add(period); }
/** * Add a period to the list. * * @param period * the period to add * @return true * @see java.util.List#add(java.lang.Object) */ public final boolean add(final Period period) { if (isUtc()) { period.setUtc(true); } else { period.setTimeZone(timezone); } return add((Object) period); }
p.setTimeZone(timezone);