GraphEdge<ActualEdgeType,VertexType>
, java.lang.Comparable<ActualEdgeType>
CallGraphEdge
, ConstraintEdge
, Edge
, InheritanceEdge
, InterproceduralCallGraphEdge
public class AbstractEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>,VertexType extends AbstractVertex<ActualEdgeType,VertexType>> extends java.lang.Object implements GraphEdge<ActualEdgeType,VertexType>
GraphEdge
,
AbstractGraph
,
AbstractVertex
Constructor | Description |
---|---|
AbstractEdge(VertexType source,
VertexType target) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(ActualEdgeType other) |
|
boolean |
equals(java.lang.Object o) |
|
int |
getLabel() |
Get the integer label.
|
VertexType |
getSource() |
Get the source vertex.
|
VertexType |
getTarget() |
Get the target vertex.
|
int |
hashCode() |
|
void |
setLabel(int label) |
Set the integer label.
|
public AbstractEdge(VertexType source, VertexType target)
source
- the source vertex of the edgetarget
- the target vertex of the edgepublic VertexType getSource()
GraphEdge
getSource
in interface GraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>,VertexType extends AbstractVertex<ActualEdgeType,VertexType>>
public VertexType getTarget()
GraphEdge
getTarget
in interface GraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>,VertexType extends AbstractVertex<ActualEdgeType,VertexType>>
public int getLabel()
GraphEdge
getLabel
in interface GraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>,VertexType extends AbstractVertex<ActualEdgeType,VertexType>>
public void setLabel(int label)
GraphEdge
setLabel
in interface GraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>,VertexType extends AbstractVertex<ActualEdgeType,VertexType>>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(ActualEdgeType other)
compareTo
in interface java.lang.Comparable<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>>
SpotBugs is licensed under the LGPL.