Class InetSocketAddressConverter
java.lang.Object
com.github.joschi.jadconfig.converters.InetSocketAddressConverter
- All Implemented Interfaces:
Converter<InetSocketAddress>
Converter for type
InetSocketAddress- Author:
- jschalanda
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertFrom(String value) Returns aInetSocketAddressinstance representing the specifiedStringvalue.convertTo(InetSocketAddress value) Returns aStringinstance representing the configuration parameter's value.
-
Constructor Details
-
InetSocketAddressConverter
public InetSocketAddressConverter()
-
-
Method Details
-
convertFrom
Returns aInetSocketAddressinstance representing the specifiedStringvalue.- Specified by:
convertFromin interfaceConverter<InetSocketAddress>- Parameters:
value- The configuration parameter'sStringrepresentation- Returns:
- A
InetSocketAddressinstance representing the configuration parameter's value
-
convertTo
Returns aStringinstance representing the configuration parameter's value.- Specified by:
convertToin interfaceConverter<InetSocketAddress>- Parameters:
value- The configuration parameter'sInetSocketAddressrepresentation- Returns:
- A
Stringinstance representing the configuration parameter's typed value
-