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

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

private static class JodaTimeConverters.DateTimeToLocalTimeConverter
extends java.lang.Object
implements Converter<DateTime,LocalTime>

Used when binding a parsed DateTime to a LocalTime field.

See Also:
DateTimeParser

Constructor Summary
private JodaTimeConverters.DateTimeToLocalTimeConverter()
           
 
Method Summary
 LocalTime 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.DateTimeToLocalTimeConverter

private JodaTimeConverters.DateTimeToLocalTimeConverter()
Method Detail

convert

public LocalTime 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,LocalTime>
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