Class DateConverter

    • Field Detail

      • INSTANCE

        static final DateConverter INSTANCE
        Singleton instance.
    • Constructor Detail

      • DateConverter

        protected DateConverter()
        Restricted constructor.
    • Method Detail

      • getInstantMillis

        public long getInstantMillis​(java.lang.Object object,
                                     Chronology chrono)
        Gets the millis, which is the Date millis value.
        Specified by:
        getInstantMillis in interface InstantConverter
        Overrides:
        getInstantMillis in class AbstractConverter
        Parameters:
        object - the Date to convert, must not be null
        chrono - the non-null result of getChronology
        Returns:
        the millisecond value
        Throws:
        java.lang.NullPointerException - if the object is null
        java.lang.ClassCastException - if the object is an invalid type
      • getSupportedType

        public java.lang.Class<?> getSupportedType()
        Returns Date.class.
        Specified by:
        getSupportedType in interface Converter
        Returns:
        Date.class