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

java.lang.Object
  extended by org.springframework.format.datetime.joda.JodaTimeConverters.DateTimeToDateMidnightConverter
All Implemented Interfaces:
Converter<org.joda.time.DateTime,org.joda.time.DateMidnight>
Enclosing class:
JodaTimeConverters

private static class JodaTimeConverters.DateTimeToDateMidnightConverter
extends java.lang.Object
implements Converter<org.joda.time.DateTime,org.joda.time.DateMidnight>

Used when binding a parsed DateTime to a DateMidnight field.

See Also:
DateTimeParser

Constructor Summary
private JodaTimeConverters.DateTimeToDateMidnightConverter()
           
 
Method Summary
 org.joda.time.DateMidnight convert(org.joda.time.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.DateTimeToDateMidnightConverter

private JodaTimeConverters.DateTimeToDateMidnightConverter()
Method Detail

convert

public org.joda.time.DateMidnight convert(org.joda.time.DateTime source)
Description copied from interface: Converter
Convert the source of type S to target type T.

Specified by:
convert in interface Converter<org.joda.time.DateTime,org.joda.time.DateMidnight>
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