Module bus.core

Interface DatePattern.Rule

All Known Subinterfaces:
DatePattern.NumberRule
Enclosing class:
DatePattern

public static interface DatePattern.Rule
日期格式化规则接口。
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    appendTo(Appendable buf, Calendar calendar)
    根据规则将日历值追加到输出缓冲区。
    int
    估算格式化结果的长度。
  • Method Details

    • estimateLength

      int estimateLength()
      估算格式化结果的长度。
      Returns:
      估算长度
    • appendTo

      void appendTo(Appendable buf, Calendar calendar) throws IOException
      根据规则将日历值追加到输出缓冲区。
      Parameters:
      buf - 输出缓冲区
      calendar - 日历对象
      Throws:
      IOException - 如果发生I/O错误