Class DefaultEdge

  • All Implemented Interfaces:
    org.apache.hugegraph.computer.core.allocator.Recyclable, org.apache.hugegraph.computer.core.graph.edge.Edge

    public class DefaultEdge
    extends java.lang.Object
    implements org.apache.hugegraph.computer.core.graph.edge.Edge
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultEdge​(org.apache.hugegraph.computer.core.graph.GraphFactory graphFactory)  
      DefaultEdge​(org.apache.hugegraph.computer.core.graph.GraphFactory graphFactory, java.lang.String label, java.lang.String name, org.apache.hugegraph.computer.core.graph.id.Id targetId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String label()  
      void label​(java.lang.String label)  
      java.lang.String name()  
      void name​(java.lang.String name)  
      org.apache.hugegraph.computer.core.graph.properties.Properties properties()  
      void properties​(org.apache.hugegraph.computer.core.graph.properties.Properties properties)  
      <T extends org.apache.hugegraph.computer.core.graph.value.Value>
      T
      property​(java.lang.String key)  
      org.apache.hugegraph.computer.core.graph.id.Id targetId()  
      void targetId​(org.apache.hugegraph.computer.core.graph.id.Id targetId)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultEdge

        public DefaultEdge​(org.apache.hugegraph.computer.core.graph.GraphFactory graphFactory)
      • DefaultEdge

        public DefaultEdge​(org.apache.hugegraph.computer.core.graph.GraphFactory graphFactory,
                           java.lang.String label,
                           java.lang.String name,
                           org.apache.hugegraph.computer.core.graph.id.Id targetId)
    • Method Detail

      • label

        public java.lang.String label()
        Specified by:
        label in interface org.apache.hugegraph.computer.core.graph.edge.Edge
      • label

        public void label​(java.lang.String label)
        Specified by:
        label in interface org.apache.hugegraph.computer.core.graph.edge.Edge
      • name

        public java.lang.String name()
        Specified by:
        name in interface org.apache.hugegraph.computer.core.graph.edge.Edge
      • name

        public void name​(java.lang.String name)
        Specified by:
        name in interface org.apache.hugegraph.computer.core.graph.edge.Edge
      • targetId

        public org.apache.hugegraph.computer.core.graph.id.Id targetId()
        Specified by:
        targetId in interface org.apache.hugegraph.computer.core.graph.edge.Edge
      • targetId

        public void targetId​(org.apache.hugegraph.computer.core.graph.id.Id targetId)
        Specified by:
        targetId in interface org.apache.hugegraph.computer.core.graph.edge.Edge
      • properties

        public org.apache.hugegraph.computer.core.graph.properties.Properties properties()
        Specified by:
        properties in interface org.apache.hugegraph.computer.core.graph.edge.Edge
      • properties

        public void properties​(org.apache.hugegraph.computer.core.graph.properties.Properties properties)
        Specified by:
        properties in interface org.apache.hugegraph.computer.core.graph.edge.Edge
      • property

        public <T extends org.apache.hugegraph.computer.core.graph.value.Value> T property​(java.lang.String key)
        Specified by:
        property in interface org.apache.hugegraph.computer.core.graph.edge.Edge
      • equals

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object