Class FmtLocalDate

  • All Implemented Interfaces:
    CellProcessor

    public class FmtLocalDate
    extends AbstractTemporalAccessorFormattingProcessor<java.time.LocalDate>
    Converts a LocalDate to a String. For constructors using DateTimeFormatter, refer to the following classes:
    • DateTimeFormatter - formats by pattern and style
    • DateTimeFormatter - ISO 8601 formats
    • DateTimeFormatterBuilder - complex formats created via method calls
    Since:
    2.4.0
    • Constructor Summary

      Constructors 
      Constructor Description
      FmtLocalDate()
      Constructs a new FmtLocalDate processor, which formats a LocalDate as a String, with the same output as LocalDate.toString()
      FmtLocalDate​(java.time.format.DateTimeFormatter formatter)
      Constructs a new FmtLocalDate processor, which formats a LocalDate as a String using the supplied formatter.
      FmtLocalDate​(java.time.format.DateTimeFormatter formatter, CellProcessor next)
      Constructs a new FmtLocalDate processor, which formats a LocalDate as a String using the supplied formatter, then calls the next processor in the chain.
      FmtLocalDate​(CellProcessor next)
      Constructs a new FmtLocalDate processor, which formats a LocalDate as a String, then calls the next processor in the chain.
    • Constructor Detail

      • FmtLocalDate

        public FmtLocalDate()
        Constructs a new FmtLocalDate processor, which formats a LocalDate as a String, with the same output as LocalDate.toString()
      • FmtLocalDate

        public FmtLocalDate​(CellProcessor next)
        Constructs a new FmtLocalDate processor, which formats a LocalDate as a String, then calls the next processor in the chain.
        Parameters:
        next - next processor in the chain
        Throws:
        java.lang.NullPointerException - if next is null
        See Also:
        FmtLocalDate()
      • FmtLocalDate

        public FmtLocalDate​(java.time.format.DateTimeFormatter formatter)
        Constructs a new FmtLocalDate processor, which formats a LocalDate as a String using the supplied formatter.
        Parameters:
        formatter - the formatter to use
        Throws:
        java.lang.NullPointerException - if formatter is null
      • FmtLocalDate

        public FmtLocalDate​(java.time.format.DateTimeFormatter formatter,
                            CellProcessor next)
        Constructs a new FmtLocalDate processor, which formats a LocalDate as a String using the supplied formatter, then calls the next processor in the chain.
        Parameters:
        formatter - the formatter to use
        next - the next processor in the chain
        Throws:
        java.lang.NullPointerException - if formatter or next is null