Class PeriodMapper.PeriodMapperInstance

    • Constructor Detail

      • PeriodMapperInstance

        public PeriodMapperInstance()
    • Method Detail

      • parsePeriod

        public static java.time.Period parsePeriod​(java.lang.String s)
        Parses a period string. If no units are specified in the string, it is assumed to be in days. The returned period is in days. The purpose of this function is to implement the period-related methods in the ConfigObject interface.

        Heavily inspired by https://github.com/lightbend/config/blob/ea45ea3767a201933eeeb9c3f0f13eacc9b51f07/config/src/main/java/com/typesafe/config/impl/SimpleConfig.java