Class DateTimeConverter

  • All Implemented Interfaces:
    Converter<java.util.Date,​java.sql.Time>

    public class DateTimeConverter
    extends java.lang.Object
    implements Converter<java.util.Date,​java.sql.Time>
    Converts Date to Time
    Author:
    jschwarz
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.sql.Time convert​(java.util.Date object)
      Converts the specified object and returns the conversion result.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DateTimeConverter

        public DateTimeConverter()
    • Method Detail

      • convert

        public java.sql.Time convert​(java.util.Date object)
        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<java.util.Date,​java.sql.Time>
        Parameters:
        object - object to convert
        Returns:
        the converted object