public class InetAddressConverter extends Object implements ValueConverter<InetAddress>
InetAddress using getByName.| Constructor and Description |
|---|
InetAddressConverter() |
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
convert(String value)
Converts the given string value into a Java type.
|
String |
revert(Object value)
Reverts a value to a string representation.
|
String |
valuePattern()
Gives a string that describes the pattern of the values this converter expects, if any.
|
Class<InetAddress> |
valueType()
Gives the class of the type of values this converter converts to.
|
public InetAddress convert(String value)
ValueConverterconvert in interface ValueConverter<InetAddress>value - the string to convertpublic String revert(Object value)
ValueConverterReverts a value to a string representation.
It is not strictly required that revert(convert(v)).equals(v),
but it is recommended.
revert in interface ValueConverter<InetAddress>value - a valuepublic Class<InetAddress> valueType()
ValueConvertervalueType in interface ValueConverter<InetAddress>public String valuePattern()
ValueConverterdate format string.valuePattern in interface ValueConverter<InetAddress>null if there's nothing interesting here© Copyright 2004-2016 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License.