Package-level declarations
Types
INDEX: (int) Indicates the position in a list of edges
This class represents an edge between two Node objects in a Neo4J graph. It can be used to store additional information that relate to the relationship between the two nodes that belong to neither of the two nodes directly.
Since Neo4J uses the PropertyEdgeConverter (as it implements the CompositeAttributeConverter interface), we cannot define it as a singleton, as it requires to have a constructor. We want to be able to dynamically define converters for PropertyEdges that have more complex structures such as enums or custom classes, we need a singleton to be able to add the converters. Refer to the documentation of PropertyEdgeConverter to see which primitives are supported by default, and which require a custom converter.
This class can be used to implement delegated properties in Node classes. The most common use case is to have a property that is a list of PropertyEdge objects (for persistence) and a second (delegated) property that allows easy access just to the connected nodes of the individual edges for in-memory access.