Class NetworkEntity

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    Edge, Node

    public abstract class NetworkEntity
    extends java.lang.Object
    implements java.io.Serializable
    Abstract class for a node and an edge entity.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.io.Serializable data
      Generic object which can store additional information about an edge or a node.
      protected java.lang.String id
      Identifier of entity.
      protected java.lang.String type
      Indicates type of entity.
    • Constructor Summary

      Constructors 
      Constructor Description
      NetworkEntity​(java.lang.String id, java.io.Serializable data, java.lang.String type)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.Object getData()  
      java.lang.String getId()  
      java.lang.String getType()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • id

        protected final java.lang.String id
        Identifier of entity.
      • data

        protected final java.io.Serializable data
        Generic object which can store additional information about an edge or a node.
      • type

        protected final java.lang.String type
        Indicates type of entity. Possible values are node and edge.
    • Constructor Detail

      • NetworkEntity

        public NetworkEntity​(java.lang.String id,
                             java.io.Serializable data,
                             java.lang.String type)
    • Method Detail

      • getId

        public java.lang.String getId()
      • getData

        public java.lang.Object getData()
      • getType

        public java.lang.String getType()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object