T - the type of Path.public static class Paths.DefaultPathDescriptor<T extends Path> extends Object implements Paths.PathDescriptor<T>
Paths.PathDescriptor used in common toString()
representations in classes implementing Path.| Constructor and Description |
|---|
Paths.DefaultPathDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
String |
nodeRepresentation(Path path,
Node node)
Returns a string representation of a
Node. |
String |
relationshipRepresentation(Path path,
Node from,
Relationship relationship)
Returns a string representation of a
Relationship. |
public String nodeRepresentation(Path path, Node node)
Paths.PathDescriptorNode.nodeRepresentation in interface Paths.PathDescriptor<T extends Path>path - the Path we're building a string representation
from.node - the Node to return a string representation of.Node.public String relationshipRepresentation(Path path, Node from, Relationship relationship)
Paths.PathDescriptorRelationship.relationshipRepresentation in interface Paths.PathDescriptor<T extends Path>path - the Path we're building a string representation
from.from - the previous Node in the path.relationship - the Relationship to return a string
representation of.Relationship.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.