Class TimezoneGetter

java.lang.Object
org.apache.harmony.luni.internal.util.TimezoneGetter

public abstract class TimezoneGetter
extends Object
This class provides a way to add an implementation specific way to access the current timezone.
  • Constructor Details

    • TimezoneGetter

      public TimezoneGetter()
  • Method Details

    • getInstance

      public static TimezoneGetter getInstance()
      Retrieves the singleton instance of this class.
      Returns:
      TimezoneGetter the single instance of this class.
    • setInstance

      public static void setInstance​(TimezoneGetter getter)
      Sets the singleton instance of this class.
      Parameters:
      instance - TimezoneGetter the single instance of this class.
    • getId

      public abstract String getId()
      Retrieves the ID of the current time zone.
      Returns:
      String the ID of the current time zone.