Package org.apache.commons.lang3.time
Class ImmutableTimeZone
java.lang.Object
java.util.TimeZone
org.apache.commons.lang3.time.ImmutableTimeZone
- All Implemented Interfaces:
Serializable,Cloneable
An immutable
TimeZone.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetDisplayName(boolean daylight, int style, Locale locale) intgetID()intgetOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) intgetOffset(long date) intinthashCode()booleanhasSameRules(TimeZone other) booleaninDaylightTime(Date date) booleanvoidSets no time zone property and always throwsUnsupportedOperationException.voidsetRawOffset(int offsetMillis) Sets no time zone property and always throwsUnsupportedOperationException.toString()toZoneId()(package private) TimeZoneunwrap()booleanMethods inherited from class java.util.TimeZone
getAvailableIDs, getAvailableIDs, getDefault, getDisplayName, getDisplayName, getDisplayName, getTimeZone, getTimeZone, setDefault
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
timeZone
-
-
Constructor Details
-
ImmutableTimeZone
ImmutableTimeZone(TimeZone timeZone)
-
-
Method Details
-
clone
-
equals
-
getDisplayName
- Overrides:
getDisplayNamein classTimeZone
-
getDSTSavings
public int getDSTSavings()- Overrides:
getDSTSavingsin classTimeZone
-
getID
-
getOffset
public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) -
getOffset
public int getOffset(long date) -
getRawOffset
public int getRawOffset()- Specified by:
getRawOffsetin classTimeZone
-
hashCode
public int hashCode() -
hasSameRules
- Overrides:
hasSameRulesin classTimeZone
-
inDaylightTime
- Specified by:
inDaylightTimein classTimeZone
-
observesDaylightTime
public boolean observesDaylightTime()- Overrides:
observesDaylightTimein classTimeZone
-
setID
Sets no time zone property and always throwsUnsupportedOperationException. -
setRawOffset
public void setRawOffset(int offsetMillis) Sets no time zone property and always throwsUnsupportedOperationException.- Specified by:
setRawOffsetin classTimeZone
-
toString
-
toZoneId
-
unwrap
TimeZone unwrap() -
useDaylightTime
public boolean useDaylightTime()- Specified by:
useDaylightTimein classTimeZone
-