java.lang.Object
org.sentrysoftware.maven.metricshub.connector.parser.JsonNodeUpdater

public class JsonNodeUpdater extends Object
This utility class traverses a JsonNode, applying updates according to an updater function and a predicate that determines whether the value should be updated.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Traverse the current JsonNode, applying the updater to each JsonNode child when the predicate evaluates to true, indicating that the value should be updated.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JsonNodeUpdater

      public JsonNodeUpdater()
  • Method Details

    • update

      public void update()
      Traverse the current JsonNode, applying the updater to each JsonNode child when the predicate evaluates to true, indicating that the value should be updated.