Class Edge<T extends Node>

  • Type Parameters:
    T - The type of the nodes this edge connects
    Direct Known Subclasses:
    BpmnEdge, DirectedEdge, UndirectedEdge

    public abstract class Edge<T extends Node>
    extends java.lang.Object
    Instances of this class represent abstract edges.
    Author:
    Matthias Thimm
    • Constructor Summary

      Constructors 
      Constructor Description
      Edge​(T nodeA, T nodeB)
      Creates a new edge for the given nodes.
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      T getNodeA()
      Returns the first node of this edge.
      T getNodeB()
      Returns the second node of this edge.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Edge

        public Edge​(T nodeA,
                    T nodeB)
        Creates a new edge for the given nodes.
        Parameters:
        nodeA - some node.
        nodeB - some node.
    • Method Detail

      • getNodeA

        public T getNodeA()
        Returns the first node of this edge.
        Returns:
        the first node of this edge.
      • getNodeB

        public T getNodeB()
        Returns the second node of this edge.
        Returns:
        the second node of this edge.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object