public static class DateConverters.StringToDateConverter extends java.lang.Object implements ValueConverter<java.util.Date>
| Constructor and Description |
|---|
StringToDateConverter(java.text.DateFormat format) |
StringToDateConverter(java.lang.String pattern) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
convert(java.lang.Object value)
Converts the given value into the target type
V if it is not null
and if such a conversion is supported by this converter. |
public StringToDateConverter(java.lang.String pattern)
public StringToDateConverter(java.text.DateFormat format)
public java.util.Date convert(java.lang.Object value) throws java.lang.IllegalArgumentException
ValueConverterV if it is not null
and if such a conversion is supported by this converter. Returns null if
the specified value is null or if the value cannot be converted.convert in interface ValueConverter<java.util.Date>value - the unconverted valuejava.lang.IllegalArgumentExceptionCopyright © 2021. All Rights Reserved.