Class CliUnitConverters.DURATION

  • All Implemented Interfaces:
    picocli.CommandLine.ITypeConverter<org.djunits.value.vdouble.scalar.Duration>
    Enclosing class:
    CliUnitConverters

    public static class CliUnitConverters.DURATION
    extends Object
    implements picocli.CommandLine.ITypeConverter<org.djunits.value.vdouble.scalar.Duration>
    Convert a duration String with unit on the command line to a Duration scalar.
    • Constructor Detail

      • DURATION

        public DURATION()
    • Method Detail

      • convert

        @Generated(value="org.djunits.generator.GenerateCliConverters",
                   date="2020-01-17T12:27:20.797349900Z")
        public org.djunits.value.vdouble.scalar.Duration convert​(String value)
                                                          throws Exception
        Specified by:
        convert in interface picocli.CommandLine.ITypeConverter<org.djunits.value.vdouble.scalar.Duration>
        Throws:
        Exception