Class SimpleLink
java.lang.Object
- All Implemented Interfaces:
Link
A simple immutable representation of ADF links.
- Author:
- Mathias Hofer, Lars Bengel
-
Constructor Summary
ConstructorDescriptionSimpleLink
(Argument from, Argument to) Constructs a newSimpleLink
with the specified source and target arguments.SimpleLink
(Argument from, Argument to, LinkType type) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getFrom()
Returns the source argument from which the link originates.getTo()
Returns the target argument to which the link points.getType()
Returns the type of the link, indicating the nature of the connection between the source and target arguments.int
hashCode()
toString()
-
Constructor Details
-
SimpleLink
-
SimpleLink
Constructs a newSimpleLink
with the specified source and target arguments. The link is of typeLinkType.DEPENDENT
.- Parameters:
from
- The source argument from which the link originates.to
- The target argument to which the link points.- Throws:
NullPointerException
- if eitherfrom
orto
isnull
.
-
-
Method Details
-
getFrom
-
getTo
-
getType
-
toString
- Overrides:
toString
in classDirectedEdge<Argument>
-
hashCode
-
equals
-