org.jboss.seam.international.datetimezone
Class ForwardingDateTimeZone

java.lang.Object
  extended by org.joda.time.DateTimeZone
      extended by org.jboss.seam.international.datetimezone.ForwardingDateTimeZone
All Implemented Interfaces:
Serializable

public abstract class ForwardingDateTimeZone
extends org.joda.time.DateTimeZone

Delegating TimeZone.

Author:
Ken Finnigan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.joda.time.DateTimeZone
UTC
 
Constructor Summary
protected ForwardingDateTimeZone(String id)
           
 
Method Summary
 long convertLocalToUTC(long instantLocal, boolean strict)
           
 long convertUTCToLocal(long instantUTC)
           
protected abstract  org.joda.time.DateTimeZone delegate()
          Abstract getter for the delegate
 boolean equals(Object obj)
          Compares an object with the delegate
 String getName(long instant, Locale locale)
           
 String getNameKey(long instant)
           
 int getOffset(long instant)
           
 int getOffsetFromLocal(long instantLocal)
           
 String getShortName(long instant, Locale locale)
           
 int getStandardOffset(long instant)
           
 int hashCode()
          Gets the hash code of the delegate
 boolean isFixed()
           
 boolean isStandardOffset(long instant)
           
 long nextTransition(long instant)
           
 long previousTransition(long instant)
           
 String toString()
          Returns a string representation
 TimeZone toTimeZone()
           
 
Methods inherited from class org.joda.time.DateTimeZone
forID, forOffsetHours, forOffsetHoursMinutes, forOffsetMillis, forTimeZone, getAvailableIDs, getDefault, getID, getMillisKeepLocal, getName, getNameProvider, getOffset, getProvider, getShortName, isLocalDateTimeGap, setDefault, setNameProvider, setProvider, writeReplace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForwardingDateTimeZone

protected ForwardingDateTimeZone(String id)
Method Detail

delegate

protected abstract org.joda.time.DateTimeZone delegate()
Abstract getter for the delegate

Returns:
The delegate

convertLocalToUTC

public long convertLocalToUTC(long instantLocal,
                              boolean strict)
Overrides:
convertLocalToUTC in class org.joda.time.DateTimeZone

convertUTCToLocal

public long convertUTCToLocal(long instantUTC)
Overrides:
convertUTCToLocal in class org.joda.time.DateTimeZone

getName

public String getName(long instant,
                      Locale locale)
Overrides:
getName in class org.joda.time.DateTimeZone

getNameKey

public String getNameKey(long instant)
Specified by:
getNameKey in class org.joda.time.DateTimeZone

getOffset

public int getOffset(long instant)
Specified by:
getOffset in class org.joda.time.DateTimeZone

getOffsetFromLocal

public int getOffsetFromLocal(long instantLocal)
Overrides:
getOffsetFromLocal in class org.joda.time.DateTimeZone

getShortName

public String getShortName(long instant,
                           Locale locale)
Overrides:
getShortName in class org.joda.time.DateTimeZone

getStandardOffset

public int getStandardOffset(long instant)
Specified by:
getStandardOffset in class org.joda.time.DateTimeZone

isFixed

public boolean isFixed()
Specified by:
isFixed in class org.joda.time.DateTimeZone

isStandardOffset

public boolean isStandardOffset(long instant)
Overrides:
isStandardOffset in class org.joda.time.DateTimeZone

nextTransition

public long nextTransition(long instant)
Specified by:
nextTransition in class org.joda.time.DateTimeZone

previousTransition

public long previousTransition(long instant)
Specified by:
previousTransition in class org.joda.time.DateTimeZone

toTimeZone

public TimeZone toTimeZone()
Overrides:
toTimeZone in class org.joda.time.DateTimeZone

equals

public boolean equals(Object obj)
Compares an object with the delegate

Specified by:
equals in class org.joda.time.DateTimeZone
Returns:
True if equals, false otherwise

hashCode

public int hashCode()
Gets the hash code of the delegate

Overrides:
hashCode in class org.joda.time.DateTimeZone
Returns:
The hash code

toString

public String toString()
Returns a string representation

Overrides:
toString in class org.joda.time.DateTimeZone
Returns:
The string representation


Copyright © 2011 Seam Framework. All Rights Reserved.