Class TimeZoneAdapter
java.lang.Object
java.util.TimeZone
org.graalvm.shadowed.com.ibm.icu.impl.TimeZoneAdapter
- All Implemented Interfaces:
Serializable, Cloneable
TimeZoneAdapter wraps a org.graalvm.shadowed.com.ibm.icu.util.TimeZone
subclass and inherits from java.util.TimeZone.
Without this class, we would need to 'port' java.util.Date to
org.graalvm.shadowed.com.ibm.icu.util as well, so that Date could interoperate properly
with the org.graalvm.shadowed.com.ibm.icu.util TimeZone and Calendar classes. With this
class, we can use java.util.Date together with org.graalvm.shadowed.com.ibm.icu.util
classes.- Since:
- ICU 2.8
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTimeZoneAdapter(TimeZone zone) Constructs an adapter for a org.graalvm.shadowed.com.ibm.icu.util.TimeZone object. -
Method Summary
Modifier and TypeMethodDescriptionclone()Boilerplate API; calls through to wrapped object.booleanBoilerplate API; calls through to wrapped object.intgetOffset(int era, int year, int month, int day, int dayOfWeek, int millis) TimeZone API; calls through to wrapped time zone.intTimeZone API; calls through to wrapped time zone.inthashCode()Boilerplate API; calls through to wrapped object.booleanhasSameRules(TimeZone other) TimeZone API; calls through to wrapped time zone.booleaninDaylightTime(Date date) TimeZone API; calls through to wrapped time zone.voidTimeZone API; calls through to wrapped time zone.voidsetRawOffset(int offsetMillis) TimeZone API; calls through to wrapped time zone.toString()Returns a string representation of this object.unwrap()Return the java.util.TimeZone wrapped by this object.booleanTimeZone API; calls through to wrapped time zone.static TimeZoneGiven a java.util.TimeZone, wrap it in the appropriate adapter subclass of org.graalvm.shadowed.com.ibm.icu.util.TimeZone and return the adapter.Methods inherited from class TimeZone
availableIDs, availableIDs, getAvailableIDs, getAvailableIDs, getDefault, getDisplayName, getDisplayName, getDisplayName, getDisplayName, getDSTSavings, getID, getOffset, getTimeZone, getTimeZone, observesDaylightTime, setDefault, toZoneId
-
Constructor Details
-
TimeZoneAdapter
Constructs an adapter for a org.graalvm.shadowed.com.ibm.icu.util.TimeZone object.
-
-
Method Details
-
wrap
-
unwrap
Return the java.util.TimeZone wrapped by this object. -
setID
-
hasSameRules
TimeZone API; calls through to wrapped time zone.- Overrides:
hasSameRulesin classTimeZone
-
getOffset
-
getRawOffset
public int getRawOffset()TimeZone API; calls through to wrapped time zone.- Specified by:
getRawOffsetin classTimeZone
-
setRawOffset
public void setRawOffset(int offsetMillis) TimeZone API; calls through to wrapped time zone.- Specified by:
setRawOffsetin classTimeZone
-
useDaylightTime
public boolean useDaylightTime()TimeZone API; calls through to wrapped time zone.- Specified by:
useDaylightTimein classTimeZone
-
inDaylightTime
TimeZone API; calls through to wrapped time zone.- Specified by:
inDaylightTimein classTimeZone
-
clone
-
hashCode
-
equals
-
toString
-