Class LocalDateTimeConverter

  • All Implemented Interfaces:
    TypeConverter<java.lang.String,​java.time.LocalDateTime>

    public class LocalDateTimeConverter
    extends java.lang.Object
    implements TypeConverter<java.lang.String,​java.time.LocalDateTime>
    LocalDateTime type converter. Converts a String date time in the DateTimeFormatter.ISO_LOCAL_DATE_TIME format to a LocalDateTime type.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.LocalDateTime convert​(java.lang.String value)
      Convert a source type into a target type.
      • Methods inherited from class java.lang.Object

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

      • LocalDateTimeConverter

        public LocalDateTimeConverter()
    • Method Detail

      • convert

        public java.time.LocalDateTime convert​(java.lang.String value)
        Description copied from interface: TypeConverter
        Convert a source type into a target type.
        Specified by:
        convert in interface TypeConverter<java.lang.String,​java.time.LocalDateTime>
        Parameters:
        value - the input value to convert
        Returns:
        The converted value