Class HostSpecifierConverter

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

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

    • HostSpecifierConverter

      public HostSpecifierConverter()
  • Method Details

    • convertFrom

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

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