Class CommitReportParser


  • public class CommitReportParser
    extends java.lang.Object
    • Method Detail

      • toJson

        public static java.lang.String toJson​(CommitReport commitReport)
      • toJson

        public static java.lang.String toJson​(CommitReport commitReport,
                                              boolean pretty)
      • toJson

        public static void toJson​(CommitReport commitReport,
                                  com.fasterxml.jackson.core.JsonGenerator gen)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • toJsonWithoutStartEnd

        public static void toJsonWithoutStartEnd​(CommitReport commitReport,
                                                 com.fasterxml.jackson.core.JsonGenerator gen)
                                          throws java.io.IOException
        This serializes the CommitReport without writing a start/end object and is mainly used by ReportMetricsRequestParser.
        Parameters:
        commitReport - The CommitReport to serialize
        gen - The JsonGenerator to use
        Throws:
        java.io.IOException - If an error occurs while serializing
      • fromJson

        public static CommitReport fromJson​(java.lang.String json)
      • fromJson

        public static CommitReport fromJson​(com.fasterxml.jackson.databind.JsonNode json)