org.joda.time.tz
Class UTCProvider

java.lang.Object
  extended by org.joda.time.tz.UTCProvider
All Implemented Interfaces:
Provider

public final class UTCProvider
extends Object
implements Provider

Simple time zone provider that supports only UTC.

UTCProvider is thread-safe and immutable.

Since:
1.0
Author:
Brian S O'Neill

Constructor Summary
UTCProvider()
          Constructor.
 
Method Summary
 Set<String> getAvailableIDs()
          Returns a singleton collection containing only "UTC".
 DateTimeZone getZone(String id)
          Returns UTC for "UTC", null otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTCProvider

public UTCProvider()
Constructor.

Method Detail

getZone

public DateTimeZone getZone(String id)
Returns UTC for "UTC", null otherwise.

Specified by:
getZone in interface Provider
Returns:
null if not found

getAvailableIDs

public Set<String> getAvailableIDs()
Returns a singleton collection containing only "UTC".

Specified by:
getAvailableIDs in interface Provider


Copyright © 2002-2013 Joda.org. All Rights Reserved.