Class CalendarDateConverter

java.lang.Object
com.saperion.common.lang.conversion.time.CalendarDateConverter
All Implemented Interfaces:
Converter<Calendar,Date>

public class CalendarDateConverter extends Object implements Converter<Calendar,Date>
converts a Calendar to a Date
Author:
jschwarz
  • Constructor Details

    • CalendarDateConverter

      public CalendarDateConverter()
  • Method Details

    • convert

      public Date convert(Calendar calendar)
      Description copied from interface: Converter
      Converts the specified object and returns the conversion result.

      Implementations have to accept null-values without throwing exceptions.

      Specified by:
      convert in interface Converter<Calendar,Date>
      Parameters:
      calendar - object to convert
      Returns:
      the converted object