Package edu.umd.cs.findbugs.graph
Class AbstractEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>,VertexType extends AbstractVertex<ActualEdgeType,VertexType>>
java.lang.Object
edu.umd.cs.findbugs.graph.AbstractEdge<ActualEdgeType,VertexType>
- All Implemented Interfaces:
GraphEdge<ActualEdgeType,
,VertexType> Comparable<ActualEdgeType>
- Direct Known Subclasses:
CallGraphEdge
,ConstraintEdge
,Edge
,InheritanceEdge
,InterproceduralCallGraphEdge
public class AbstractEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>,VertexType extends AbstractVertex<ActualEdgeType,VertexType>>
extends Object
implements GraphEdge<ActualEdgeType,VertexType>
GraphEdge implementation for use with AbstractGraph.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private ActualEdgeType
private ActualEdgeType
private final VertexType
private final VertexType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(ActualEdgeType other) boolean
int
getLabel()
Get the integer label.(package private) ActualEdgeType
(package private) ActualEdgeType
Get the source vertex.Get the target vertex.int
hashCode()
void
setLabel
(int label) Set the integer label.(package private) void
(package private) void
-
Field Details
-
source
-
target
-
label
private int label -
nextOutgoingEdge
-
nextIncomingEdge
-
-
Constructor Details
-
AbstractEdge
Constructor.- Parameters:
source
- the source vertex of the edgetarget
- the target vertex of the edge
-
-
Method Details
-
getSource
Description copied from interface:GraphEdge
Get the source vertex.- Specified by:
getSource
in interfaceGraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,
VertexType>, VertexType extends AbstractVertex<ActualEdgeType, VertexType>>
-
getTarget
Description copied from interface:GraphEdge
Get the target vertex.- Specified by:
getTarget
in interfaceGraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,
VertexType>, VertexType extends AbstractVertex<ActualEdgeType, VertexType>>
-
getLabel
public int getLabel()Description copied from interface:GraphEdge
Get the integer label.- Specified by:
getLabel
in interfaceGraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,
VertexType>, VertexType extends AbstractVertex<ActualEdgeType, VertexType>>
-
setLabel
public void setLabel(int label) Description copied from interface:GraphEdge
Set the integer label.- Specified by:
setLabel
in interfaceGraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,
VertexType>, VertexType extends AbstractVertex<ActualEdgeType, VertexType>>
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ActualEdgeType extends AbstractEdge<ActualEdgeType,
VertexType>>
-
setNextOutgoingEdge
-
getNextOutgoingEdge
ActualEdgeType getNextOutgoingEdge() -
setNextIncomingEdge
-
getNextIncomingEdge
ActualEdgeType getNextIncomingEdge()
-