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 Summary
Constructors Constructor Description TimezoneGetter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetId()Retrieves the ID of the current time zone.static TimezoneGettergetInstance()Retrieves the singleton instance of this class.static voidsetInstance(TimezoneGetter getter)Sets the singleton instance of this class.
-
-
-
Method Detail
-
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.
-
-