Interface FastDatePrinter.Rule

All Known Subinterfaces:
FastDatePrinter.NumberRule
All Known Implementing Classes:
FastDatePrinter.CharacterLiteral, FastDatePrinter.Iso8601_Rule, FastDatePrinter.PaddedNumberField, FastDatePrinter.StringLiteral, FastDatePrinter.TextField, FastDatePrinter.TimeZoneNameRule, FastDatePrinter.TimeZoneNumberRule, FastDatePrinter.TwelveHourField, FastDatePrinter.TwentyFourHourField, FastDatePrinter.TwoDigitMonthField, FastDatePrinter.TwoDigitNumberField, FastDatePrinter.TwoDigitYearField, FastDatePrinter.UnpaddedMonthField, FastDatePrinter.UnpaddedNumberField
Enclosing class:
FastDatePrinter

private static interface FastDatePrinter.Rule
Inner class defining a rule.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    appendTo(StringBuffer buffer, Calendar calendar)
    Appends the value of the specified calendar to the output buffer based on the rule implementation.
    int
    Returns the estimated length of the result.
  • Method Details

    • estimateLength

      int estimateLength()
      Returns the estimated length of the result.
      Returns:
      the estimated length
    • appendTo

      void appendTo(StringBuffer buffer, Calendar calendar)
      Appends the value of the specified calendar to the output buffer based on the rule implementation.
      Parameters:
      buffer - the output buffer
      calendar - calendar to be appended