java.lang.Object
org.neo4j.bolt.connection.values.ValueUtils

public final class ValueUtils extends Object
The methods in this utility class are mainly aimed at Bolt connection developers or for use in the Neo4j Java or JDBC Drivers. Both drivers are maintained by Neo4j inline with the Bolt Connection API, so we will upgrade and change the methods in this class as we see fit and won't give any API guarantees.
  • Method Details

    • parseDuration

      public static Value parseDuration(ValueFactory valueFactory, String input)
      Parses a String into a Value wrapping an IsoDuration.
      Parameters:
      valueFactory - needed for creating the underlying value
      input - the input to parse
      Returns:
      the new value
    • renderDuration

      public static String renderDuration(IsoDuration duration)
      Renders an IsoDuration into a commonly agreed upon String
      Parameters:
      duration - the duration to render
      Returns:
      a string representation or null if duration is null