org.jboss.seam.international.jdktimezone
Class ForwardingTimeZone

java.lang.Object
  extended by java.util.TimeZone
      extended by org.jboss.seam.international.jdktimezone.ForwardingTimeZone
All Implemented Interfaces:
Serializable, Cloneable

public abstract class ForwardingTimeZone
extends TimeZone

Delegating TimeZone.

Author:
Ken Finnigan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.TimeZone
LONG, SHORT
 
Constructor Summary
protected ForwardingTimeZone(String id)
           
 
Method Summary
protected abstract  TimeZone delegate()
          Abstract getter for the delegate
 boolean equals(Object obj)
           
 String getDisplayName(boolean daylight, int style, Locale locale)
           
 int getDSTSavings()
           
 String getID()
           
 int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds)
           
 int getOffset(long date)
           
 int getRawOffset()
           
 int hashCode()
           
 boolean hasSameRules(TimeZone other)
           
 boolean inDaylightTime(Date date)
           
 String toString()
           
 boolean useDaylightTime()
           
 
Methods inherited from class java.util.TimeZone
clone, getAvailableIDs, getAvailableIDs, getDefault, getDisplayName, getDisplayName, getDisplayName, getTimeZone, setDefault, setID, setRawOffset
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForwardingTimeZone

protected ForwardingTimeZone(String id)
Method Detail

delegate

protected abstract TimeZone delegate()
Abstract getter for the delegate

Returns:
The delegate

getOffset

public int getOffset(int era,
                     int year,
                     int month,
                     int day,
                     int dayOfWeek,
                     int milliseconds)
Specified by:
getOffset in class TimeZone

getOffset

public int getOffset(long date)
Overrides:
getOffset in class TimeZone

getRawOffset

public int getRawOffset()
Specified by:
getRawOffset in class TimeZone

getID

public String getID()
Overrides:
getID in class TimeZone

getDisplayName

public String getDisplayName(boolean daylight,
                             int style,
                             Locale locale)
Overrides:
getDisplayName in class TimeZone

getDSTSavings

public int getDSTSavings()
Overrides:
getDSTSavings in class TimeZone

useDaylightTime

public boolean useDaylightTime()
Specified by:
useDaylightTime in class TimeZone

inDaylightTime

public boolean inDaylightTime(Date date)
Specified by:
inDaylightTime in class TimeZone

hasSameRules

public boolean hasSameRules(TimeZone other)
Overrides:
hasSameRules in class TimeZone

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 Seam Framework. All Rights Reserved.