Class DateConverter

    • Constructor Detail

      • DateConverter

        public DateConverter()
        Creates the Converter.
      • DateConverter

        protected DateConverter​(java.lang.Class clazz)
    • Method Detail

      • decode

        public java.lang.Object decode​(java.lang.Class<?> targetClass,
                                       java.lang.Object val,
                                       MappedField optionalExtraInfo)
        Description copied from class: TypeConverter
        decode the DBObject and provide the corresponding java (type-safe) object
        NOTE: optionalExtraInfo might be null
        Specified by:
        decode in class TypeConverter
        Parameters:
        targetClass - the class to create and populate
        val - the DBObject to use when populating the new instance
        optionalExtraInfo - the MappedField that contains the metadata useful for decoding
        Returns:
        the new instance