Class InternetDomainNameConverter

java.lang.Object
com.github.joschi.jadconfig.guava.converters.InternetDomainNameConverter
All Implemented Interfaces:
Converter<com.google.common.net.InternetDomainName>

public class InternetDomainNameConverter extends Object implements Converter<com.google.common.net.InternetDomainName>
Converter for type InternetDomainName.
  • Constructor Details

    • InternetDomainNameConverter

      public InternetDomainNameConverter()
  • Method Details

    • convertFrom

      public com.google.common.net.InternetDomainName convertFrom(String value)
      Returns a InternetDomainName instance representing the specified String value.
      Specified by:
      convertFrom in interface Converter<com.google.common.net.InternetDomainName>
      Parameters:
      value - The configuration parameter's String value
      Returns:
      An InternetDomainName instance representing the configuration parameter's value
    • convertTo

      public String convertTo(com.google.common.net.InternetDomainName value)
      Returns a String instance representing the configuration parameter's value.
      Specified by:
      convertTo in interface Converter<com.google.common.net.InternetDomainName>
      Parameters:
      value - The configuration parameter's InternetDomainName value
      Returns:
      A String instance representing the configuration parameter's typed value