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.
|
annotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotationspublic 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()
LinkDescriptionsrc in interface LinkDescriptionpublic ConnectPoint dst()
LinkDescriptiondst in interface LinkDescriptionpublic Link.Type type()
LinkDescriptiontype in interface LinkDescriptionpublic boolean isExpected()
LinkDescriptionisExpected in interface LinkDescriptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class AbstractDescriptionpublic boolean equals(java.lang.Object object)
equals in class AbstractDescription