Class DateAdapterOptions


  • public final class DateAdapterOptions
    extends NativeObjectContainer
    Simple class to map LUXON options to provide to date time adapter.
    Author:
    Andrea "Stock" Stocchero
    • Field Detail

    • Constructor Detail

      • DateAdapterOptions

        public DateAdapterOptions()
        Creates the object with an empty native object instance.
    • Method Detail

      • setLocale

        public void setLocale​(CLocale locale)
        Sets the locale that LUXON must use by the date adapter.
        See here the details about locale in LUXON.
        Parameters:
        locale - the time zone that LUXON must use by the date adapter
      • getLocale

        public CLocale getLocale()
        Returns the locale that LUXON must use by the date adapter.
        See here the details about locale in LUXON.
        Returns:
        the locale that LUXON must use by the date adapter
      • setZone

        public void setZone​(TimeZone zone)
        Sets the zone that LUXON must use by the date adapter.
        See here the details about time zone in LUXON.
        Parameters:
        zone - the zone that LUXON must use by the date adapter
      • getZone

        public TimeZone getZone()
        Returns the zone that LUXON must use by the date adapter.
        See here the details about time zone in LUXON.
        Returns:
        the zone that LUXON must use by the date adapter
      • setOutputCalendar

        public void setOutputCalendar​(Calendar outputCalendar)
        Sets the name of calendaring systems that LUXON must use by the date adapter.
        See here the list of implemented and available. output calendar systems.
        Parameters:
        outputCalendar - the name of calendaring systems that LUXON must use by the date adapter
      • getOutputCalendar

        public Calendar getOutputCalendar()
        Returns the name of calendaring systems that LUXON must use by the date adapter.
        See here the list of implemented and available. output calendar systems.
        Returns:
        the name of calendaring systems that LUXON must use by the date adapter
      • setNumberingSystem

        public void setNumberingSystem​(NumberingSystem numberingSystem)
        Sets the name of numbering systems that LUXON must use by the date adapter.
        See here the details about numbering system in LUXON.
        Parameters:
        numberingSystem - the name of numbering systems that LUXON must use by the date adapter
      • getNumberingSystem

        public NumberingSystem getNumberingSystem()
        Returns the name of numbering systems that LUXON must use by the date adapter.
        See here the details about numbering system in LUXON.
        Returns:
        the name of numbering systems that LUXON must use by the date adapter
      • create

        public DateAdapter create()
        Creates a DateAdapter using a clone of this object as options for the date adapter instance.
        Returns:
        a DateAdapter using a clone of this object as options for the date adapter instance