Class ReducedPrinterParser

java.lang.Object
javax.time.calendar.format.NumberPrinterParser
javax.time.calendar.format.ReducedPrinterParser
All Implemented Interfaces:
DateTimeParser, DateTimePrinter

final class ReducedPrinterParser extends NumberPrinterParser
Prints and parses a reduced numeric date-time field.

ReducedPrinterParser is immutable and thread-safe.

  • Field Details

    • baseValue

      private final int baseValue
      The base value.
    • range

      private final int range
      The range.
  • Constructor Details

    • ReducedPrinterParser

      ReducedPrinterParser(DateTimeFieldRule<?> rule, int width, int baseValue)
      Constructor.
      Parameters:
      rule - the rule of the field to print, validated not null
      width - the field width, from 1 to 9
      baseValue - the base value
  • Method Details