Class LinkKey


  • public final class LinkKey
    extends Object
    Immutable representation of a link identity.
    • Method Detail

      • src

        public ConnectPoint src()
        Returns source connection point.
        Returns:
        source connection point
      • dst

        public ConnectPoint dst()
        Returns destination connection point.
        Returns:
        destination connection point
      • asId

        public String asId()
        Returns a string suitable to be used as an identifier.
        Returns:
        string as identifier
      • hashCode

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

        public static LinkKey linkKey​(ConnectPoint src,
                                      ConnectPoint dst)
        Creates a link identifier with source and destination connection point.
        Parameters:
        src - source connection point
        dst - destination connection point
        Returns:
        a link identifier
      • linkKey

        public static LinkKey linkKey​(Link link)
        Creates a link identifier for the specified link.
        Parameters:
        link - link descriptor
        Returns:
        a link identifier
      • linkKey

        public static LinkKey linkKey​(LinkDescription link)
        Creates a link identifier for the specified link.
        Parameters:
        link - Description
        Returns:
        a link identifier