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

java.lang.Object
  extended by org.springframework.format.datetime.joda.JodaTimeConverters.DateToLongConverter
All Implemented Interfaces:
Converter<java.util.Date,java.lang.Long>
Enclosing class:
JodaTimeConverters

private static class JodaTimeConverters.DateToLongConverter
extends java.lang.Object
implements Converter<java.util.Date,java.lang.Long>

Used when printing a java.util.Date field with a MillisecondInstantPrinter.

See Also:
MillisecondInstantPrinter, JodaDateTimeFormatAnnotationFormatterFactory

Constructor Summary
private JodaTimeConverters.DateToLongConverter()
           
 
Method Summary
 java.lang.Long convert(java.util.Date 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.DateToLongConverter

private JodaTimeConverters.DateToLongConverter()
Method Detail

convert

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

Specified by:
convert in interface Converter<java.util.Date,java.lang.Long>
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