Class MonthDayDateConverter

  • All Implemented Interfaces:
    java.io.Serializable, TypeConverter<java.time.MonthDay,​java.util.Date>

    public class MonthDayDateConverter
    extends java.lang.Object
    implements TypeConverter<java.time.MonthDay,​java.util.Date>
    Class to handle the conversion between java.time.MonthDay and java.util.Date.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date toDatastoreType​(java.time.MonthDay md)
      Method to convert the passed member value to the datastore type.
      java.time.MonthDay toMemberType​(java.util.Date date)
      Method to convert the passed datastore value to the member type.
      • Methods inherited from class java.lang.Object

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

      • MonthDayDateConverter

        public MonthDayDateConverter()
    • Method Detail

      • toMemberType

        public java.time.MonthDay toMemberType​(java.util.Date date)
        Description copied from interface: TypeConverter
        Method to convert the passed datastore value to the member type.
        Specified by:
        toMemberType in interface TypeConverter<java.time.MonthDay,​java.util.Date>
        Parameters:
        date - Value from the datastore
        Returns:
        Value for the member
      • toDatastoreType

        public java.util.Date toDatastoreType​(java.time.MonthDay md)
        Description copied from interface: TypeConverter
        Method to convert the passed member value to the datastore type.
        Specified by:
        toDatastoreType in interface TypeConverter<java.time.MonthDay,​java.util.Date>
        Parameters:
        md - Value from the member
        Returns:
        Value for the datastore