public class DefaultLinkDescription extends AbstractDescription implements LinkDescription
Modifier and Type | Field and Description |
---|---|
static boolean |
EXPECTED |
static boolean |
NOT_EXPECTED |
Constructor and Description |
---|
DefaultLinkDescription(ConnectPoint src,
ConnectPoint dst,
Link.Type type,
boolean isExpected,
SparseAnnotations... annotations)
Creates a link description using the supplied information.
|
DefaultLinkDescription(ConnectPoint src,
ConnectPoint dst,
Link.Type type,
SparseAnnotations... annotations)
Creates a link description using the supplied information.
|
Modifier and Type | Method and Description |
---|---|
ConnectPoint |
dst()
Returns the link destination.
|
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
boolean |
isExpected()
Returns true if the link is expected, false otherwise.
|
ConnectPoint |
src()
Returns the link source.
|
java.lang.String |
toString() |
Link.Type |
type()
Returns the link type.
|
annotations
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotations
public static final boolean EXPECTED
public static final boolean NOT_EXPECTED
public DefaultLinkDescription(ConnectPoint src, ConnectPoint dst, Link.Type type, boolean isExpected, SparseAnnotations... annotations)
src
- link sourcedst
- link destinationtype
- link typeisExpected
- is the link expected to be part of this configurationannotations
- optional key/value annotationspublic DefaultLinkDescription(ConnectPoint src, ConnectPoint dst, Link.Type type, SparseAnnotations... annotations)
src
- link sourcedst
- link destinationtype
- link typeannotations
- optional key/value annotationspublic ConnectPoint src()
LinkDescription
src
in interface LinkDescription
public ConnectPoint dst()
LinkDescription
dst
in interface LinkDescription
public Link.Type type()
LinkDescription
type
in interface LinkDescription
public boolean isExpected()
LinkDescription
isExpected
in interface LinkDescription
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class AbstractDescription
public boolean equals(java.lang.Object object)
equals
in class AbstractDescription