Class Entity

  • All Implemented Interfaces:
    Serializable, ElementId, EntityId
    Direct Known Subclasses:
    LazyEntity

    public class Entity
    extends Element
    implements EntityId
    An Entity in an Element containing a single vertex. The vertex can be any type of Object. There is no requirement for this vertex to connect to an Entity's source or destination vertex - for example you could have a 'graph' of just entities. Entities are designed so that multiple entities can share the same vertex but are distinguished via their group.
    See Also:
    Entity.Builder, Serialized Form
    • Constructor Detail

      • Entity

        public Entity​(String group)
      • Entity

        public Entity​(String group,
                      Object vertex)
        Constructs an instance of Entity.
        Parameters:
        group - the Entity group
        vertex - the vertex
      • Entity

        public Entity​(String group,
                      Object vertex,
                      Properties properties)
        Constructs an instance of Entity.
        Parameters:
        group - the Entity group
        vertex - the vertex
        properties - the entity properties