Class DefaultEdge
- java.lang.Object
-
- org.apache.hugegraph.computer.core.graph.edge.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 booleanequals(java.lang.Object obj)inthashCode()java.lang.Stringlabel()voidlabel(java.lang.String label)java.lang.Stringname()voidname(java.lang.String name)org.apache.hugegraph.computer.core.graph.properties.Propertiesproperties()voidproperties(org.apache.hugegraph.computer.core.graph.properties.Properties properties)<T extends org.apache.hugegraph.computer.core.graph.value.Value>
Tproperty(java.lang.String key)org.apache.hugegraph.computer.core.graph.id.IdtargetId()voidtargetId(org.apache.hugegraph.computer.core.graph.id.Id targetId)java.lang.StringtoString()
-
-
-
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:
labelin interfaceorg.apache.hugegraph.computer.core.graph.edge.Edge
-
label
public void label(java.lang.String label)
- Specified by:
labelin interfaceorg.apache.hugegraph.computer.core.graph.edge.Edge
-
name
public java.lang.String name()
- Specified by:
namein interfaceorg.apache.hugegraph.computer.core.graph.edge.Edge
-
name
public void name(java.lang.String name)
- Specified by:
namein interfaceorg.apache.hugegraph.computer.core.graph.edge.Edge
-
targetId
public org.apache.hugegraph.computer.core.graph.id.Id targetId()
- Specified by:
targetIdin interfaceorg.apache.hugegraph.computer.core.graph.edge.Edge
-
targetId
public void targetId(org.apache.hugegraph.computer.core.graph.id.Id targetId)
- Specified by:
targetIdin interfaceorg.apache.hugegraph.computer.core.graph.edge.Edge
-
properties
public org.apache.hugegraph.computer.core.graph.properties.Properties properties()
- Specified by:
propertiesin interfaceorg.apache.hugegraph.computer.core.graph.edge.Edge
-
properties
public void properties(org.apache.hugegraph.computer.core.graph.properties.Properties properties)
- Specified by:
propertiesin interfaceorg.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:
propertyin interfaceorg.apache.hugegraph.computer.core.graph.edge.Edge
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-