Class NameserversParameter

  • All Implemented Interfaces:
    com.beust.jcommander.IParameterValidator, com.beust.jcommander.IStringConverter<java.util.Set<java.lang.String>>

    public final class NameserversParameter
    extends ParameterConverterValidator<java.util.Set<java.lang.String>>
    Nameservers CLI parameter converter/validator.

    This accepts a String containing a comma-delimited list of nameservers. Square bracket notation can be used to expand multiple nameservers, e.g. "ns[1-2].googledomains.com" will be expanded to "ns1.googledomains.com,ns2.googledomains.com".

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> convert​(java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NameserversParameter

        public NameserversParameter()
    • Method Detail

      • convert

        public java.util.Set<java.lang.String> convert​(java.lang.String value)
        Specified by:
        convert in interface com.beust.jcommander.IStringConverter<java.util.Set<java.lang.String>>
        Specified by:
        convert in class ParameterConverterValidator<java.util.Set<java.lang.String>>