Class FastDatePrinter.TimeZoneNameRule

java.lang.Object
org.sqlite.date.FastDatePrinter.TimeZoneNameRule
All Implemented Interfaces:
FastDatePrinter.Rule
Enclosing class:
FastDatePrinter

private static class FastDatePrinter.TimeZoneNameRule extends Object implements FastDatePrinter.Rule
Inner class to output a time zone name.
  • Field Details

    • mLocale

      private final Locale mLocale
    • mStyle

      private final int mStyle
    • mStandard

      private final String mStandard
    • mDaylight

      private final String mDaylight
  • Constructor Details

    • TimeZoneNameRule

      TimeZoneNameRule(TimeZone timeZone, Locale locale, int style)
      Constructs an instance of TimeZoneNameRule with the specified properties.
      Parameters:
      timeZone - the time zone
      locale - the locale
      style - the style
  • Method Details

    • estimateLength

      public int estimateLength()
      Returns the estimated length of the result.
      Specified by:
      estimateLength in interface FastDatePrinter.Rule
      Returns:
      the estimated length
    • appendTo

      public void appendTo(StringBuffer buffer, Calendar calendar)
      Appends the value of the specified calendar to the output buffer based on the rule implementation.
      Specified by:
      appendTo in interface FastDatePrinter.Rule
      Parameters:
      buffer - the output buffer
      calendar - calendar to be appended