public final class LinkKey
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asId()
Returns a string suitable to be used as an identifier.
|
ConnectPoint |
dst()
Returns destination connection point.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static LinkKey |
linkKey(ConnectPoint src,
ConnectPoint dst)
Creates a link identifier with source and destination connection point.
|
static LinkKey |
linkKey(Link link)
Creates a link identifier for the specified link.
|
static LinkKey |
linkKey(LinkDescription link)
Creates a link identifier for the specified link.
|
ConnectPoint |
src()
Returns source connection point.
|
java.lang.String |
toString() |
public ConnectPoint src()
public ConnectPoint dst()
public java.lang.String asId()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static LinkKey linkKey(ConnectPoint src, ConnectPoint dst)
src
- source connection pointdst
- destination connection pointpublic static LinkKey linkKey(Link link)
link
- link descriptorpublic static LinkKey linkKey(LinkDescription link)
link
- Description