Class HostAndPortConverter

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

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

    • HostAndPortConverter

      public HostAndPortConverter()
  • Method Details

    • convertFrom

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

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