Class JodaIntervalSerializer


  • public class JodaIntervalSerializer
    extends com.esotericsoftware.kryo.Serializer<org.joda.time.Interval>
    A format for Joda Interval, that stores the start and end millis, and chronology as separate attributes. If the chronology is ISOChronology, the attribute is omitted, thus ISOChronology is seen as default.

    The following chronologies are supported:

    • ISOChronology
    • CopticChronology
    • EthiopicChronology
    • GregorianChronology
    • JulianChronology
    • IslamicChronology
    • BuddhistChronology
    • GJChronology

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.joda.time.Interval read​(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends org.joda.time.Interval> type)  
      void write​(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, org.joda.time.Interval obj)  
      • Methods inherited from class com.esotericsoftware.kryo.Serializer

        copy, getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
    • Constructor Detail

      • JodaIntervalSerializer

        public JodaIntervalSerializer()
    • Method Detail

      • read

        public org.joda.time.Interval read​(com.esotericsoftware.kryo.Kryo kryo,
                                           com.esotericsoftware.kryo.io.Input input,
                                           Class<? extends org.joda.time.Interval> type)
        Specified by:
        read in class com.esotericsoftware.kryo.Serializer<org.joda.time.Interval>
      • write

        public void write​(com.esotericsoftware.kryo.Kryo kryo,
                          com.esotericsoftware.kryo.io.Output output,
                          org.joda.time.Interval obj)
        Specified by:
        write in class com.esotericsoftware.kryo.Serializer<org.joda.time.Interval>