Class NullConverter

    • Field Detail

      • INSTANCE

        static final NullConverter INSTANCE
        Singleton instance.
    • Constructor Detail

      • NullConverter

        protected NullConverter()
        Restricted constructor.
    • Method Detail

      • getDurationMillis

        public long getDurationMillis​(java.lang.Object object)
        Gets the millisecond duration, which is zero.
        Specified by:
        getDurationMillis in interface DurationConverter
        Parameters:
        object - the object to convert, which is null
        Returns:
        the millisecond duration
      • setInto

        public void setInto​(ReadWritablePeriod duration,
                            java.lang.Object object,
                            Chronology chrono)
        Sets the given ReadWritableDuration to zero milliseconds.
        Specified by:
        setInto in interface PeriodConverter
        Parameters:
        duration - duration to get modified
        object - the object to convert, which is null
        chrono - the chronology to use
        Throws:
        java.lang.NullPointerException - if the duration is null
      • setInto

        public void setInto​(ReadWritableInterval writableInterval,
                            java.lang.Object object,
                            Chronology chrono)
        Extracts interval endpoint values from an object of this converter's type, and sets them into the given ReadWritableInterval.
        Specified by:
        setInto in interface IntervalConverter
        Parameters:
        writableInterval - interval to get modified, not null
        object - the object to convert, which is null
        chrono - the chronology to use, may be null
        Throws:
        java.lang.NullPointerException - if the interval is null
      • getSupportedType

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