ma.glasnost.orika.converter.builtin
Class DateAndTimeConverters.TimeToDateConverter

java.lang.Object
  extended by ma.glasnost.orika.CustomConverter<Time,Date>
      extended by ma.glasnost.orika.converter.builtin.DateAndTimeConverters.TimeToDateConverter
All Implemented Interfaces:
Converter<Time,Date>, MappedTypePair<Time,Date>
Enclosing class:
DateAndTimeConverters

public static class DateAndTimeConverters.TimeToDateConverter
extends CustomConverter<Time,Date>

Provides conversion between Date and Time

Author:
matt.deboer@gmail.com

Field Summary
 
Fields inherited from class ma.glasnost.orika.CustomConverter
destinationType, mapperFacade, sourceType
 
Constructor Summary
DateAndTimeConverters.TimeToDateConverter()
           
 
Method Summary
 Date convert(Time source, Type<? extends Date> destinationType)
          Perform the conversion of source into a new instance of destinationType.
 
Methods inherited from class ma.glasnost.orika.CustomConverter
canConvert, getAType, getBType, setMapperFacade, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateAndTimeConverters.TimeToDateConverter

public DateAndTimeConverters.TimeToDateConverter()
Method Detail

convert

public Date convert(Time source,
                    Type<? extends Date> destinationType)
Description copied from interface: Converter
Perform the conversion of source into a new instance of destinationType.

Parameters:
source - the source object to be converted
destinationType - the destination type to produce
Returns:
a new instance of destinationType


Copyright © 2013 Glasnost. All Rights Reserved.