public class DefaultLinkDescription extends AbstractDescription implements LinkDescription
| Constructor and Description |
|---|
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.
|
ConnectPoint |
src()
Returns the link source.
|
String |
toString() |
Link.Type |
type()
Returns the link type.
|
annotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitannotationspublic 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 LinkDescriptionCopyright © 2015. All rights reserved.