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

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

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

Used when binding a parsed DateTime to a java.util.Date field.

See Also:
DateTimeParser

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

private JodaTimeConverters.DateTimeToDateConverter()
Method Detail

convert

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

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