Interface FastDateFormat.Rule

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

private static interface FastDateFormat.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 lentgh of the result.
  • Method Details

    • estimateLength

      int estimateLength()
      Returns the estimated lentgh 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