| java.lang.Object java.util.TimeZone com.ibm.icu.impl.TimeZoneAdapter
TimeZoneAdapter | public class TimeZoneAdapter extends java.util.TimeZone (Code) | | TimeZoneAdapter wraps a com.ibm.icu.util.TimeZone
subclass that is NOT a JDKTimeZone, that is, that does not itself
wrap a java.util.TimeZone. It inherits from java.util.TimeZone.
Without this class, we would need to 'port' java.util.Date to
com.ibm.icu.util as well, so that Date could interoperate properly
with the com.ibm.icu.util TimeZone and Calendar classes. With this
class, we can use java.util.Date together with com.ibm.icu.util
classes.
The complement of this is JDKTimeZone, which makes a
java.util.TimeZone look like a com.ibm.icu.util.TimeZone.
See Also: com.ibm.icu.impl.JDKTimeZone See Also: com.ibm.icu.util.TimeZone.setDefault author: Alan Liu since: ICU 2.8 |
Constructor Summary | |
public | TimeZoneAdapter(TimeZone zone) Constructs an adapter for a com.ibm.icu.util.TimeZone object. |
Method Summary | |
public Object | clone() Boilerplate API; calls through to wrapped object. | public boolean | equals(Object obj) Boilerplate API; calls through to wrapped object. | public int | getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) TimeZone API; calls through to wrapped time zone. | public int | getRawOffset() TimeZone API; calls through to wrapped time zone. | public boolean | hasSameRules(java.util.TimeZone other) TimeZone API; calls through to wrapped time zone. | public synchronized int | hashCode() Boilerplate API; calls through to wrapped object. | public boolean | inDaylightTime(Date date) TimeZone API; calls through to wrapped time zone. | public void | setID(String ID) TimeZone API; calls through to wrapped time zone. | public void | setRawOffset(int offsetMillis) TimeZone API; calls through to wrapped time zone. | public String | toString() Returns a string representation of this object. | public com.ibm.icu.util.TimeZone | unwrap() Return the java.util.TimeZone wrapped by this object. | public boolean | useDaylightTime() TimeZone API; calls through to wrapped time zone. | public static java.util.TimeZone | wrap(com.ibm.icu.util.TimeZone tz) Given a java.util.TimeZone, wrap it in the appropriate adapter
subclass of com.ibm.icu.util.TimeZone and return the adapter. |
serialVersionUID | final static long serialVersionUID(Code) | | |
TimeZoneAdapter | public TimeZoneAdapter(TimeZone zone)(Code) | | Constructs an adapter for a com.ibm.icu.util.TimeZone object.
|
clone | public Object clone()(Code) | | Boilerplate API; calls through to wrapped object.
|
equals | public boolean equals(Object obj)(Code) | | Boilerplate API; calls through to wrapped object.
|
getOffset | public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis)(Code) | | TimeZone API; calls through to wrapped time zone.
|
getRawOffset | public int getRawOffset()(Code) | | TimeZone API; calls through to wrapped time zone.
|
hasSameRules | public boolean hasSameRules(java.util.TimeZone other)(Code) | | TimeZone API; calls through to wrapped time zone.
|
hashCode | public synchronized int hashCode()(Code) | | Boilerplate API; calls through to wrapped object.
|
inDaylightTime | public boolean inDaylightTime(Date date)(Code) | | TimeZone API; calls through to wrapped time zone.
|
setID | public void setID(String ID)(Code) | | TimeZone API; calls through to wrapped time zone.
|
setRawOffset | public void setRawOffset(int offsetMillis)(Code) | | TimeZone API; calls through to wrapped time zone.
|
toString | public String toString()(Code) | | Returns a string representation of this object.
a string representation of this object. |
useDaylightTime | public boolean useDaylightTime()(Code) | | TimeZone API; calls through to wrapped time zone.
|
|
|