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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.net.HostAndPortconvertFrom(String value) Returns aHostAndPortinstance representing the specifiedStringvalue.convertTo(com.google.common.net.HostAndPort value) Returns aStringinstance representing the configuration parameter's value.
-
Constructor Details
-
HostAndPortConverter
public HostAndPortConverter()
-
-
Method Details
-
convertFrom
Returns aHostAndPortinstance representing the specifiedStringvalue.- Specified by:
convertFromin interfaceConverter<com.google.common.net.HostAndPort>- Parameters:
value- The configuration parameter'sStringvalue- Returns:
- An
HostAndPortinstance representing the configuration parameter's value
-
convertTo
Returns aStringinstance representing the configuration parameter's value.
-