Class PathValue

All Implemented Interfaces:
org.neo4j.driver.internal.AsValue, InternalValue, MapAccessor, MapAccessorWithDefaultValue, Value

public class PathValue extends ObjectValueAdapter<Path>
  • Constructor Details

    • PathValue

      public PathValue(Path adapted)
  • Method Details

    • asPath

      public Path asPath()
      Specified by:
      asPath in interface Value
      Overrides:
      asPath in class ValueAdapter
      Returns:
      the value as a Path, if possible.
    • size

      public int size()
      Description copied from interface: Value
      If the underlying value is a collection type, return the number of values in the collection.

      For TypeSystem.LIST() list} values, this will return the size of the list.

      For map values, this will return the number of entries in the map.

      For node and TypeSystem.RELATIONSHIP() relationship} values, this will return the number of properties.

      For path values, this returns the length (number of relationships) in the path.

      Specified by:
      size in interface MapAccessor
      Specified by:
      size in interface Value
      Overrides:
      size in class ValueAdapter
      Returns:
      the number of values in an underlying collection
    • type

      public Type type()
      Returns:
      The type of this value as defined in the Neo4j type system