Class JodaIntervalSerializer
- java.lang.Object
-
- com.esotericsoftware.kryo.Serializer<org.joda.time.Interval>
-
- de.javakaffee.kryoserializers.jodatime.JodaIntervalSerializer
-
public class JodaIntervalSerializer extends com.esotericsoftware.kryo.Serializer<org.joda.time.Interval>A format for JodaInterval, that stores the start and end millis, and chronology as separate attributes. If the chronology isISOChronology, the attribute is omitted, thusISOChronologyis seen as default.The following chronologies are supported:
ISOChronologyCopticChronologyEthiopicChronologyGregorianChronologyJulianChronologyIslamicChronologyBuddhistChronologyGJChronology
-
-
Constructor Summary
Constructors Constructor Description JodaIntervalSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.joda.time.Intervalread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends org.joda.time.Interval> type)voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, org.joda.time.Interval obj)
-
-
-
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:
readin classcom.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:
writein classcom.esotericsoftware.kryo.Serializer<org.joda.time.Interval>
-
-