com.funambol.common.pim.model.converter
Class CachedTimeZoneHelper
java.lang.Object
com.funambol.common.pim.model.converter.TimeZoneHelper
com.funambol.common.pim.model.converter.CachedTimeZoneHelper
public class CachedTimeZoneHelper
- extends TimeZoneHelper
This class is a cached extension of
com.funambol.common.pim.converter.TimeZoneHelper.
- Version:
- $Id: CachedTimeZoneHelper.java,v 1.2 2008-04-17 17:04:56 mauro Exp $
Field Summary |
protected static java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.String>> |
cache10
|
protected static java.util.Map<java.lang.String,java.util.List<ICalendarTimeZoneTransition>> |
cache20
|
protected static java.util.Map<java.lang.String,java.lang.Long> |
cache20From
|
protected static java.util.Map<java.lang.String,java.lang.Long> |
cache20To
|
protected long |
from
|
protected long |
to
|
protected boolean |
transitionsComputed
|
Fields inherited from class com.funambol.common.pim.model.converter.TimeZoneHelper |
id |
Constructor Summary |
CachedTimeZoneHelper(Property tz,
java.util.List<Property> daylightList)
Creates a new instance of CachedTimeZoneHelper on the basis of the
information extracted from a vCalendar (1.0) item. |
CachedTimeZoneHelper(java.lang.String id,
long from,
long to)
Creates a new instance of CachedTimeZoneHelper on the basis of a
zoneinfo (Olson database) ID. |
CachedTimeZoneHelper(VTimezone vTimeZone,
long from,
long to)
Creates a new instance of CachedTimeZoneHelper on the basis of the
information extracted from an iCalendar (vCalendar 2.0) item. |
Methods inherited from class com.funambol.common.pim.model.converter.TimeZoneHelper |
cacheID, clearCachedID, fixFrom, getDaylightList, getICalendarTransitions, getReferenceTime, getTZ, processID, setName, setReferenceTime, toID, toID, toID, toVTimezone, year, year |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transitionsComputed
protected boolean transitionsComputed
from
protected long from
to
protected long to
cache10
protected static java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.String>> cache10
cache20
protected static java.util.Map<java.lang.String,java.util.List<ICalendarTimeZoneTransition>> cache20
cache20From
protected static java.util.Map<java.lang.String,java.lang.Long> cache20From
cache20To
protected static java.util.Map<java.lang.String,java.lang.Long> cache20To
CachedTimeZoneHelper
public CachedTimeZoneHelper(Property tz,
java.util.List<Property> daylightList)
throws java.lang.Exception
- Creates a new instance of CachedTimeZoneHelper on the basis of the
information extracted from a vCalendar (1.0) item.
Transitions are immediately parsed.
- Parameters:
tz
- the TZ propertydaylightList
- a List containing all DAYLIGHT properties
- Throws:
java.lang.Exception
CachedTimeZoneHelper
public CachedTimeZoneHelper(VTimezone vTimeZone,
long from,
long to)
throws java.lang.Exception
- Creates a new instance of CachedTimeZoneHelper on the basis of the
information extracted from an iCalendar (vCalendar 2.0) item.
Transitions are immediately computed.
- Parameters:
vTimeZone
- from
- the start of the relevant time interval for the generation of
transitions (an istant expressed as a long)to
- the end of the relevant time interval for the generation of
transitions (an istant expressed as a long)
- Throws:
java.lang.Exception
CachedTimeZoneHelper
public CachedTimeZoneHelper(java.lang.String id,
long from,
long to)
- Creates a new instance of CachedTimeZoneHelper on the basis of a
zoneinfo (Olson database) ID.
The computation of transitions is delayed until it's eventually needed.
- Parameters:
id
- the time zone ID according to the zoneinfo (Olson) databasefrom
- the start of the relevant time interval for the generation of
transitions (an istant expressed as a long)to
- the end of the relevant time interval for the generation of
transitions (an istant expressed as a long)
getXVCalendarProperties
public java.util.List<Property> getXVCalendarProperties()
- Overrides:
getXVCalendarProperties
in class TimeZoneHelper
getVTimezone
public VTimezone getVTimezone()
- Overrides:
getVTimezone
in class TimeZoneHelper
clearCaches
public static void clearCaches()
cacheStatus
public static java.lang.String cacheStatus(java.lang.String id)
getTransitions
protected java.util.List<TimeZoneTransition> getTransitions()
- Overrides:
getTransitions
in class TimeZoneHelper
getBasicOffset
protected int getBasicOffset()
- Overrides:
getBasicOffset
in class TimeZoneHelper
getName
protected java.lang.String getName()
- Overrides:
getName
in class TimeZoneHelper
Copyright © 2001-2009 Funambol.