Class UTCProvider

  • All Implemented Interfaces:
    Provider

    public final class UTCProvider
    extends java.lang.Object
    implements Provider
    Simple time zone provider that supports only UTC.

    UTCProvider is thread-safe and immutable.

    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      UTCProvider()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getAvailableIDs()
      Returns a singleton collection containing only "UTC".
      DateTimeZone getZone​(java.lang.String id)
      Returns UTC for "UTC", null otherwise.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UTCProvider

        public UTCProvider()
        Constructor.
    • Method Detail

      • getZone

        public DateTimeZone getZone​(java.lang.String id)
        Returns UTC for "UTC", null otherwise.
        Specified by:
        getZone in interface Provider
        Returns:
        null if not found
      • getAvailableIDs

        public java.util.Set<java.lang.String> getAvailableIDs()
        Returns a singleton collection containing only "UTC".
        Specified by:
        getAvailableIDs in interface Provider