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
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.
-
Constructor Details
-
TimezoneGetter
public TimezoneGetter()
-
-
Method Details
-
getInstance
Retrieves the singleton instance of this class.- Returns:
- TimezoneGetter the single instance of this class.
-
setInstance
Sets the singleton instance of this class.- Parameters:
instance- TimezoneGetter the single instance of this class.
-
getId
Retrieves the ID of the current time zone.- Returns:
- String the ID of the current time zone.
-