org.springframework.format.datetime.joda
Class JodaTimeConverters.CalendarToReadableInstantConverter

java.lang.Object
  extended by org.springframework.format.datetime.joda.JodaTimeConverters.CalendarToReadableInstantConverter
All Implemented Interfaces:
Converter<java.util.Calendar,ReadableInstant>
Enclosing class:
JodaTimeConverters

private static class JodaTimeConverters.CalendarToReadableInstantConverter
extends java.lang.Object
implements Converter<java.util.Calendar,ReadableInstant>

Used when printing a java.util.Calendar field with a ReadableInstantPrinter.

See Also:
MillisecondInstantPrinter, JodaDateTimeFormatAnnotationFormatterFactory

Constructor Summary
private JodaTimeConverters.CalendarToReadableInstantConverter()
           
 
Method Summary
 ReadableInstant convert(java.util.Calendar source)
          Convert the source of type S to target type T.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JodaTimeConverters.CalendarToReadableInstantConverter

private JodaTimeConverters.CalendarToReadableInstantConverter()
Method Detail

convert

public ReadableInstant convert(java.util.Calendar source)
Description copied from interface: Converter
Convert the source of type S to target type T.

Specified by:
convert in interface Converter<java.util.Calendar,ReadableInstant>
Parameters:
source - the source object to convert, which must be an instance of S
Returns:
the converted object, which must be an instance of T