Class SubnetConverter

  • All Implemented Interfaces:
    picocli.CommandLine.ITypeConverter<org.drasyl.util.network.Subnet>

    public class SubnetConverter
    extends Object
    implements picocli.CommandLine.ITypeConverter<org.drasyl.util.network.Subnet>
    Converts command line argument values to Subnets.
    • Constructor Detail

      • SubnetConverter

        public SubnetConverter()
    • Method Detail

      • convert

        public org.drasyl.util.network.Subnet convert​(String value)
                                               throws Exception
        Specified by:
        convert in interface picocli.CommandLine.ITypeConverter<org.drasyl.util.network.Subnet>
        Throws:
        Exception