@Valid public class DirectedEdge extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
DirectedEdge.Builder
Class implements builder to create a new instance of class
DirectedEdge. |
| Modifier | Constructor and Description |
|---|---|
protected |
DirectedEdge()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
|
protected |
DirectedEdge(DirectedEdge.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
static DirectedEdge.Builder |
builder()
Method returns a new builder.
|
static DirectedEdge.Builder |
builder(DirectedEdge pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
static DirectedEdge.Builder |
builder(Stop pEnd,
String pLink)
Method creates a new builder and initializes it with the passed attributes.
|
Stop |
getEnd()
Method returns association
end. |
String |
getLink()
Method returns attribute
link. |
Stop |
getStart()
Method returns association
start. |
void |
setEnd(Stop pEnd)
Method sets association
end. |
void |
setLink(String pLink)
Method sets attribute
link. |
void |
setStart(Stop pStart)
Method sets association
start. |
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
void |
unsetEnd()
Method unsets
end. |
void |
unsetStart()
Method unsets
start. |
protected DirectedEdge()
protected DirectedEdge(DirectedEdge.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static DirectedEdge.Builder builder()
DirectedEdge.Builder New builder that can be used to create new DirectedEdge objects.public static DirectedEdge.Builder builder(DirectedEdge pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.DirectedEdge.Builder New builder that can be used to create new DirectedEdge objects. The method never returns
null.public static DirectedEdge.Builder builder(Stop pEnd, String pLink)
public void setStart(Stop pStart)
start.pStart - Value to which start should be set.public final void unsetStart()
start.public void setEnd(Stop pEnd)
end.pEnd - Value to which end should be set.public final void unsetEnd()
end.public void setLink(String pLink)
link.pLink - Value to which link should be set.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2023. All rights reserved.