public class CommitReportParser
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static CommitReport |
fromJson(com.fasterxml.jackson.databind.JsonNode json) |
static CommitReport |
fromJson(java.lang.String json) |
static java.lang.String |
toJson(CommitReport commitReport) |
static java.lang.String |
toJson(CommitReport commitReport,
boolean pretty) |
static void |
toJson(CommitReport commitReport,
com.fasterxml.jackson.core.JsonGenerator gen) |
static void |
toJsonWithoutStartEnd(CommitReport commitReport,
com.fasterxml.jackson.core.JsonGenerator gen)
This serializes the
CommitReport without writing a start/end object and is mainly used
by ReportMetricsRequestParser . |
public static java.lang.String toJson(CommitReport commitReport)
public static java.lang.String toJson(CommitReport commitReport, boolean pretty)
public static void toJson(CommitReport commitReport, com.fasterxml.jackson.core.JsonGenerator gen) throws java.io.IOException
java.io.IOException
public static void toJsonWithoutStartEnd(CommitReport commitReport, com.fasterxml.jackson.core.JsonGenerator gen) throws java.io.IOException
CommitReport
without writing a start/end object and is mainly used
by ReportMetricsRequestParser
.commitReport
- The CommitReport
to serializegen
- The JsonGenerator
to usejava.io.IOException
- If an error occurs while serializingpublic static CommitReport fromJson(java.lang.String json)
public static CommitReport fromJson(com.fasterxml.jackson.databind.JsonNode json)