/** * Returns the mandatory dtstart property. * * @return the DTSTART property or null if not specified */ public final DtStart getStartDate() { return getProperty(Property.DTSTART); }
/** * Returns the mandatory tzoffsetfrom property. * * @return the TZOFFSETFROM property or null if not specified */ public final TzOffsetFrom getOffsetFrom() { return getProperty(Property.TZOFFSETFROM); }
/** * Returns the mandatory tzoffsetto property. * @return the TZOFFSETTO property or null if not specified */ public final TzOffsetTo getOffsetTo() { return (TzOffsetTo) getProperty(Property.TZOFFSETTO); }
/** * Returns the mandatory tzoffsetto property. * * @return the TZOFFSETTO property or null if not specified */ public final TzOffsetTo getOffsetTo() { return (TzOffsetTo) getProperty(Property.TZOFFSETTO); }
/** * Returns the mandatory tzoffsetto property. * * @return the TZOFFSETTO property or null if not specified */ public final TzOffsetTo getOffsetTo() { return getProperty(Property.TZOFFSETTO); }
/** * Returns the mandatory dtstart property. * * @return the DTSTART property or null if not specified */ public final DtStart getStartDate() { return (DtStart) getProperty(Property.DTSTART); }
/** * Returns the mandatory tzoffsetfrom property. * * @return the TZOFFSETFROM property or null if not specified */ public final TzOffsetFrom getOffsetFrom() { return (TzOffsetFrom) getProperty(Property.TZOFFSETFROM); }
/** * Returns the mandatory tzoffsetto property. * * @return the TZOFFSETTO property or null if not specified */ public final TzOffsetTo getOffsetTo() { return getProperty(Property.TZOFFSETTO); }
/** * Returns the mandatory dtstart property. * * @return the DTSTART property or null if not specified */ public final DtStart getStartDate() { return (DtStart) getProperty(Property.DTSTART); }
/** * Returns the mandatory tzoffsetto property. * * @return the TZOFFSETTO property or null if not specified */ public final TzOffsetTo getOffsetTo() { return (TzOffsetTo) getProperty(Property.TZOFFSETTO); }
/** * Returns the mandatory dtstart property. * @return the DTSTART property or null if not specified */ public final DtStart getStartDate() { return (DtStart) getProperty(Property.DTSTART); }
/** * Returns the mandatory tzoffsetfrom property. * * @return the TZOFFSETFROM property or null if not specified */ public final TzOffsetFrom getOffsetFrom() { return (TzOffsetFrom) getProperty(Property.TZOFFSETFROM); }
/** * Returns the mandatory dtstart property. * * @return the DTSTART property or null if not specified */ public final DtStart getStartDate() { return getProperty(Property.DTSTART); }
/** * Returns the mandatory tzoffsetfrom property. * * @return the TZOFFSETFROM property or null if not specified */ public final TzOffsetFrom getOffsetFrom() { return getProperty(Property.TZOFFSETFROM); }
/** * Returns the mandatory tzoffsetfrom property. * @return the TZOFFSETFROM property or null if not specified */ public final TzOffsetFrom getOffsetFrom() { return (TzOffsetFrom) getProperty(Property.TZOFFSETFROM); }
/** * @param arg0 another observance instance * @return a positve value if this observance starts earlier than the other, * a negative value if it occurs later than the other, or zero if they start * at the same time */ public final int compareTo(final Observance arg0) { // TODO: sort by RDATE?? final DtStart dtStart = (DtStart) getProperty(Property.DTSTART); final DtStart dtStart0 = (DtStart) arg0.getProperty(Property.DTSTART); return dtStart.getDate().compareTo(dtStart0.getDate()); }
/** * {@inheritDoc} */ public int getOffset(long date) { final Observance observance = vTimeZone.getApplicableObservance(new DateTime(date)); if (observance != null) { final TzOffsetTo offset = observance.getProperty(Property.TZOFFSETTO); if ((offset.getOffset().getTotalSeconds() * 1000L) < getRawOffset()) { return getRawOffset(); } else { return (int) (offset.getOffset().getTotalSeconds() * 1000L); } } return 0; }
/** * {@inheritDoc} */ public int getOffset(long date) { final Observance observance = vTimeZone.getApplicableObservance(new DateTime(date)); if (observance != null) { final TzOffsetTo offset = observance.getProperty(Property.TZOFFSETTO); if ((offset.getOffset().getTotalSeconds() * 1000L) < getRawOffset()) { return getRawOffset(); } else { return (int) (offset.getOffset().getTotalSeconds() * 1000L); } } return 0; }
/** * {@inheritDoc} */ public int getOffset(long date) { final Observance observance = vTimeZone.getApplicableObservance(new DateTime(date)); if (observance != null) { final TzOffsetTo offset = (TzOffsetTo) observance.getProperty(Property.TZOFFSETTO); if (offset.getOffset().getOffset() < getRawOffset()) { return getRawOffset(); } else { return (int) offset.getOffset().getOffset(); } } return 0; }
/** * {@inheritDoc} */ public int getOffset(long date) { final Observance observance = vTimeZone.getApplicableObservance(new DateTime(date)); if (observance != null) { final TzOffsetTo offset = (TzOffsetTo) observance.getProperty(Property.TZOFFSETTO); if (offset.getOffset().getOffset() < getRawOffset()) { return getRawOffset(); } else { return (int) offset.getOffset().getOffset(); } } return 0; }