Class InstantPatternLegacyFormatter

    • Field Detail

      • precision

        private final java.time.temporal.ChronoUnit precision
      • pattern

        private final java.lang.String pattern
      • locale

        private final java.util.Locale locale
      • timeZone

        private final java.util.TimeZone timeZone
    • Constructor Detail

      • InstantPatternLegacyFormatter

        InstantPatternLegacyFormatter​(java.lang.String pattern,
                                      java.util.Locale locale,
                                      java.util.TimeZone timeZone)
    • Method Detail

      • createFormatter

        private static BiConsumer<java.lang.StringBuilder,​Instant> createFormatter​(java.lang.String pattern,
                                                                                         java.util.Locale locale,
                                                                                         java.util.TimeZone timeZone)
      • createFastFormatter

        private static BiConsumer<java.lang.StringBuilder,​Instant> createFastFormatter​(java.lang.String pattern,
                                                                                             java.util.Locale locale,
                                                                                             java.util.TimeZone timeZone)
      • memoryEfficientInstanceSupplier

        private static <V> java.util.function.Supplier<V> memoryEfficientInstanceSupplier​(java.util.function.Supplier<V> supplier)
      • getPrecision

        public java.time.temporal.ChronoUnit getPrecision()
        Specified by:
        getPrecision in interface InstantFormatter
        Returns:
        the time precision of the formatted output