/** * Sets whether this list is in UTC or local time format. * @param utc The utc to set. */ public final void setUtc(final boolean utc) { for (final Period period : this) { period.setUtc(utc); } this.timezone = null; this.utc = utc; }
/** * Sets whether this list is in UTC or local time format. * @param utc The utc to set. */ public final void setUtc(final boolean utc) { for (final Period period : this) { period.setUtc(utc); } this.timezone = null; this.utc = utc; }
/** * Sets whether this list is in UTC or local time format. * @param utc The utc to set. */ public final void setUtc(final boolean utc) { for (final Period period : this) { period.setUtc(utc); } this.timezone = null; this.utc = utc; }
/** * Sets whether this list is in UTC or local time format. * @param utc The utc to set. */ public final void setUtc(final boolean utc) { for (final Period period : this) { period.setUtc(utc); } this.timezone = null; this.utc = utc; }
/** * Sets whether this list is in UTC or local time format. * @param utc The utc to set. */ public final void setUtc(final boolean utc) { for (final Iterator i = iterator(); i.hasNext();) { final Period period = (Period) i.next(); period.setUtc(utc); } this.timezone = null; this.utc = utc; }
/** * 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); }