Class EdgeID<N>

java.lang.Object
org.praxislive.ide.pxr.graph.scene.EdgeID<N>
Type Parameters:
N - node type

public final class EdgeID<N> extends Object
ID of a connection (edge) between two pin IDs on nodes.
  • Constructor Details

    • EdgeID

      public EdgeID(PinID<N> pin1, PinID<N> pin2)
      Construct an EdgeID representing a connection between the two provided PinID.
      Parameters:
      pin1 - first pin
      pin2 - second pin
  • Method Details

    • getPin1

      public PinID<N> getPin1()
      Get the ID of the first pin.
      Returns:
      first pin
    • getPin2

      public PinID<N> getPin2()
      Get the ID of the second pin.
      Returns:
      second pin
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object