Class MillisecondStore

java.lang.Object
org.lukashian.store.MillisecondStore

public final class MillisecondStore extends Object
This singleton class manages the various instances of the Lukashian Calendar. Each instance is implemented by a MillisecondStoreDataProvider.

The int constants in the CalendarKeys class represent the instances that are supported by default. It is also possible to register your own implementation of MillisecondStoreDataProvider and register it.

The default calendar instance will be used when Year, Day and Instant methods do not specify a calendar instance. By default, the default is EARTH. It is possible to set a different default.

Data will only be requested from a MillisecondStoreDataProvider when the mechanism needs it, so no eager loading is done. Whenever data is requested, it is stored in a MillisecondStoreData object for repeated use, so MillisecondStoreDataProviders don't need to implement caching themselves.

See Also: