Package edu.umd.cs.findbugs.graph
Class AbstractVertex<EdgeType extends AbstractEdge<EdgeType,ActualVertexType>,ActualVertexType extends AbstractVertex<EdgeType,ActualVertexType>>
- java.lang.Object
-
- edu.umd.cs.findbugs.graph.AbstractVertex<EdgeType,ActualVertexType>
-
- All Implemented Interfaces:
GraphVertex<ActualVertexType>,java.lang.Comparable<ActualVertexType>
- Direct Known Subclasses:
BasicBlock,CallGraphNode,DetectorNode,InterproceduralCallGraphVertex
public class AbstractVertex<EdgeType extends AbstractEdge<EdgeType,ActualVertexType>,ActualVertexType extends AbstractVertex<EdgeType,ActualVertexType>> extends java.lang.Object implements GraphVertex<ActualVertexType>
GraphVertex implementation for use with AbstractGraph.- Author:
- David Hovemeyer
- See Also:
GraphVertex,AbstractGraph,AbstractEdge
-
-
Constructor Summary
Constructors Constructor Description AbstractVertex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ActualVertexType other)booleanequals(java.lang.Object o)intgetLabel()Get the numeric label for this vertex.inthashCode()voidsetLabel(int label)Set the numeric label for this vertex.
-
-
-
Method Detail
-
getLabel
public int getLabel()
Description copied from interface:GraphVertexGet the numeric label for this vertex.- Specified by:
getLabelin interfaceGraphVertex<EdgeType extends AbstractEdge<EdgeType,ActualVertexType>>
-
setLabel
public void setLabel(int label)
Description copied from interface:GraphVertexSet the numeric label for this vertex.- Specified by:
setLabelin interfaceGraphVertex<EdgeType extends AbstractEdge<EdgeType,ActualVertexType>>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(ActualVertexType other)
- Specified by:
compareToin interfacejava.lang.Comparable<EdgeType extends AbstractEdge<EdgeType,ActualVertexType>>
-
-