Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.datatype.joda.ser;
 
 

Author(s):
jkolobok
public class IntervalSerializer extends JodaSerializerBase<Interval> {
    public IntervalSerializer() {
        super(Interval.class);
    }
    @Override
    public void serialize(Interval intervalJsonGenerator jsonGeneratorSerializerProvider serializerProviderthrows IOExceptionJsonGenerationException {
        jsonGenerator.writeString(interval.getStartMillis() + "-" + interval.getEndMillis());
    }
New to GrepCode? Check out our FAQ X