public static class DirectedEdge.Builder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
DirectedEdge.builder() instead of private constructor to create new builder. |
protected |
Builder(DirectedEdge pObject)
Use
DirectedEdge.builder(DirectedEdge) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
DirectedEdge |
build()
Method creates a new instance of class DirectedEdge.
|
DirectedEdge |
buildValidated()
Method creates a new validated instance of class DirectedEdge.
|
DirectedEdge.Builder |
setEnd(Stop pEnd)
Method sets the association "end".
|
DirectedEdge.Builder |
setLink(String pLink)
Method sets the attribute "link".
|
DirectedEdge.Builder |
setStart(Stop pStart)
Method sets the association "start".
|
protected Builder()
DirectedEdge.builder() instead of private constructor to create new builder.protected Builder(DirectedEdge pObject)
DirectedEdge.builder(DirectedEdge) instead of private constructor to create new builder.public DirectedEdge.Builder setStart(Stop pStart)
pStart - Stop to which the association "start" should be set.public DirectedEdge.Builder setEnd(Stop pEnd)
pEnd - Stop to which the association "end" should be set.public DirectedEdge.Builder setLink(String pLink)
pLink - Value to which the attribute "link" should be set.public DirectedEdge build()
public DirectedEdge buildValidated() throws javax.validation.ConstraintViolationException
javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2022. All rights reserved.