Package org.neo4j.graphdb.traversal
Class Paths.DefaultPathDescriptor<T extends Path>
java.lang.Object
org.neo4j.graphdb.traversal.Paths.DefaultPathDescriptor<T>
- Type Parameters:
T
- the type ofPath
.
- All Implemented Interfaces:
Paths.PathDescriptor<T>
- Enclosing class:
- Paths
public static class Paths.DefaultPathDescriptor<T extends Path>
extends Object
implements Paths.PathDescriptor<T>
The default
Paths.PathDescriptor
used in common toString()
representations in classes implementing Path
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnodeRepresentation
(Path path, Node node) Returns a string representation of aNode
.relationshipRepresentation
(Path path, Node from, Relationship relationship) Returns a string representation of aRelationship
.
-
Constructor Details
-
DefaultPathDescriptor
public DefaultPathDescriptor()
-
-
Method Details
-
nodeRepresentation
Description copied from interface:Paths.PathDescriptor
Returns a string representation of aNode
.- Specified by:
nodeRepresentation
in interfacePaths.PathDescriptor<T extends Path>
- Parameters:
path
- thePath
we're building a string representation from.node
- theNode
to return a string representation of.- Returns:
- a string representation of a
Node
.
-
relationshipRepresentation
Description copied from interface:Paths.PathDescriptor
Returns a string representation of aRelationship
.- Specified by:
relationshipRepresentation
in interfacePaths.PathDescriptor<T extends Path>
- Parameters:
path
- thePath
we're building a string representation from.from
- the previousNode
in the path.relationship
- theRelationship
to return a string representation of.- Returns:
- a string representation of a
Relationship
.
-