java.lang.Object
org.neo4j.bolt.connection.values.ValueUtils
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 Summary
Modifier and TypeMethodDescriptionstatic ValueparseDuration(ValueFactory valueFactory, String input) static StringrenderDuration(IsoDuration duration) Renders anIsoDurationinto a commonly agreed uponString
-
Method Details
-
parseDuration
- Parameters:
valueFactory- needed for creating the underlying valueinput- the input to parse- Returns:
- the new value
-
renderDuration
Renders anIsoDurationinto a commonly agreed uponString- Parameters:
duration- the duration to render- Returns:
- a string representation or null if duration is null
-