public class CalendarConverter extends Object implements IConverter<Calendar>
Calendar
.Constructor and Description |
---|
CalendarConverter()
Construct.
|
CalendarConverter(IConverter<Date> dateConverter)
Construct.
|
Modifier and Type | Method and Description |
---|---|
Calendar |
convertToObject(String value,
Locale locale)
Converts the given
String value |
String |
convertToString(Calendar value,
Locale locale)
Converts the given value to a string.
|
public CalendarConverter()
public CalendarConverter(IConverter<Date> dateConverter)
dateConverter
- delegated converter, not nullpublic Calendar convertToObject(String value, Locale locale)
IConverter
String
valueconvertToObject
in interface IConverter<Calendar>
value
- The string value to convertlocale
- The locale used to convert the valuepublic String convertToString(Calendar value, Locale locale)
IConverter
convertToString
in interface IConverter<Calendar>
value
- The value to convertlocale
- The locale used to convert the valueCopyright © 2006–2022 Apache Software Foundation. All rights reserved.