Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.datatype.joda.ser;
 
 
 
Serializes a Duration as its number of millis.
public final class DurationSerializer extends StdScalarSerializer<Duration>
    public DurationSerializer() { super(Duration.class); }
    @Override
    public void serialize(Duration valueJsonGenerator jgenSerializerProvider providerthrows IOException,
    {
        jgen.writeNumber(value.getMillis());
    }
New to GrepCode? Check out our FAQ X