Package com.ibm.icu.impl.jdkadapter
Class TimeZoneICU
- java.lang.Object
-
- java.util.TimeZone
-
- com.ibm.icu.impl.jdkadapter.TimeZoneICU
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class TimeZoneICU extends java.util.TimeZone
TimeZoneICU is an adapter class which wraps ICU4J TimeZone and implements java.util.TimeZone APIs.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private TimeZone
fIcuTz
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
TimeZoneICU(TimeZone icuTz)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
java.lang.String
getDisplayName(boolean daylight, int style, java.util.Locale locale)
int
getDSTSavings()
java.lang.String
getID()
int
getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds)
int
getOffset(long date)
int
getRawOffset()
boolean
hasSameRules(java.util.TimeZone other)
boolean
inDaylightTime(java.util.Date date)
void
setID(java.lang.String ID)
void
setRawOffset(int offsetMillis)
TimeZone
unwrap()
boolean
useDaylightTime()
static java.util.TimeZone
wrap(TimeZone icuTz)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
fIcuTz
private TimeZone fIcuTz
-
-
Constructor Detail
-
TimeZoneICU
private TimeZoneICU(TimeZone icuTz)
-
-
Method Detail
-
wrap
public static java.util.TimeZone wrap(TimeZone icuTz)
-
unwrap
public TimeZone unwrap()
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.util.TimeZone
-
getDisplayName
public java.lang.String getDisplayName(boolean daylight, int style, java.util.Locale locale)
- Overrides:
getDisplayName
in classjava.util.TimeZone
-
getDSTSavings
public int getDSTSavings()
- Overrides:
getDSTSavings
in classjava.util.TimeZone
-
getID
public java.lang.String getID()
- Overrides:
getID
in classjava.util.TimeZone
-
getOffset
public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds)
- Specified by:
getOffset
in classjava.util.TimeZone
-
getOffset
public int getOffset(long date)
- Overrides:
getOffset
in classjava.util.TimeZone
-
getRawOffset
public int getRawOffset()
- Specified by:
getRawOffset
in classjava.util.TimeZone
-
hasSameRules
public boolean hasSameRules(java.util.TimeZone other)
- Overrides:
hasSameRules
in classjava.util.TimeZone
-
inDaylightTime
public boolean inDaylightTime(java.util.Date date)
- Specified by:
inDaylightTime
in classjava.util.TimeZone
-
setID
public void setID(java.lang.String ID)
- Overrides:
setID
in classjava.util.TimeZone
-
setRawOffset
public void setRawOffset(int offsetMillis)
- Specified by:
setRawOffset
in classjava.util.TimeZone
-
useDaylightTime
public boolean useDaylightTime()
- Specified by:
useDaylightTime
in classjava.util.TimeZone
-
-