Package joptsimple.util
Class InetAddressConverter
java.lang.Object
joptsimple.util.InetAddressConverter
- All Implemented Interfaces:
ValueConverter<InetAddress>
Converts values to
InetAddress
using getByName
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the given string value into a Java type.private String
Gives a string that describes the pattern of the values this converter expects, if any.Gives the class of the type of values this converter converts to.
-
Constructor Details
-
InetAddressConverter
public InetAddressConverter()
-
-
Method Details
-
convert
Description copied from interface:ValueConverter
Converts the given string value into a Java type.- Specified by:
convert
in interfaceValueConverter<InetAddress>
- Parameters:
value
- the string to convert- Returns:
- the converted value
-
valueType
Description copied from interface:ValueConverter
Gives the class of the type of values this converter converts to.- Specified by:
valueType
in interfaceValueConverter<InetAddress>
- Returns:
- the target class for conversion
-
valuePattern
Description copied from interface:ValueConverter
Gives a string that describes the pattern of the values this converter expects, if any. For example, a date converter can respond with adate format string
.- Specified by:
valuePattern
in interfaceValueConverter<InetAddress>
- Returns:
- a value pattern, or
null
if there's nothing interesting here
-
message
-