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.
- Author:
- David Hovemeyer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ActualEdgeType other) booleanintgetLabel()Get the integer label.Get the source vertex.Get the target vertex.inthashCode()voidsetLabel(int label) Set the integer label.
-
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:GraphEdgeGet the source vertex.- Specified by:
getSourcein interfaceGraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>, VertexType extends AbstractVertex<ActualEdgeType, VertexType>>
-
getTarget
Description copied from interface:GraphEdgeGet the target vertex.- Specified by:
getTargetin interfaceGraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>, VertexType extends AbstractVertex<ActualEdgeType, VertexType>>
-
getLabel
public int getLabel()Description copied from interface:GraphEdgeGet the integer label.- Specified by:
getLabelin interfaceGraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>, VertexType extends AbstractVertex<ActualEdgeType, VertexType>>
-
setLabel
public void setLabel(int label) Description copied from interface:GraphEdgeSet the integer label.- Specified by:
setLabelin interfaceGraphEdge<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>, VertexType extends AbstractVertex<ActualEdgeType, VertexType>>
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<ActualEdgeType extends AbstractEdge<ActualEdgeType,VertexType>>
-