com.atlassian.jira.timezone
Class TimeZoneInfoImpl

java.lang.Object
  extended by com.atlassian.jira.timezone.TimeZoneInfoImpl
All Implemented Interfaces:
TimeZoneInfo, Comparable<TimeZoneInfo>

public class TimeZoneInfoImpl
extends Object
implements TimeZoneInfo

Since:
v4.4

Constructor Summary
TimeZoneInfoImpl(String timeZoneId, String displayName, TimeZone timeZone, I18nHelper i18nHelper, String regionKey)
           
 
Method Summary
 int compareTo(TimeZoneInfo timeZoneInfo)
           
 String getCity()
           
 String getDisplayName()
           
 String getGMTOffset()
           
 String getRegionKey()
           
 String getTimeZoneId()
           
 String toString()
           
 TimeZone toTimeZone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeZoneInfoImpl

public TimeZoneInfoImpl(String timeZoneId,
                        String displayName,
                        TimeZone timeZone,
                        I18nHelper i18nHelper,
                        String regionKey)
Method Detail

getTimeZoneId

public String getTimeZoneId()
Specified by:
getTimeZoneId in interface TimeZoneInfo
Returns:
the id of the timezone

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface TimeZoneInfo
Returns:
the i18n'ed display name for this timezone.

getGMTOffset

public String getGMTOffset()
Specified by:
getGMTOffset in interface TimeZoneInfo
Returns:
the GMT offset in the format (GMT[+|-]hh:mm)

getCity

public String getCity()
Specified by:
getCity in interface TimeZoneInfo
Returns:
the name of the city for this timezone.

getRegionKey

public String getRegionKey()
Specified by:
getRegionKey in interface TimeZoneInfo
Returns:
the key of the region

toTimeZone

public TimeZone toTimeZone()
Specified by:
toTimeZone in interface TimeZoneInfo
Returns:
the JAVA TimeZone object for this timezone.

compareTo

public int compareTo(TimeZoneInfo timeZoneInfo)
Specified by:
compareTo in interface Comparable<TimeZoneInfo>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.