| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
Leg.builder() instead of private constructor to create new builder. |
protected |
Builder(Leg pObject)
Use
Leg.builder(Leg) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
Leg |
build()
Method creates a new instance of class Leg.
|
Leg |
buildValidated()
Method creates a new validated instance of class Leg.
|
Leg.Builder |
setStart(PlaceRef pStart)
Method sets the association "start".
|
Leg.Builder |
setStop(PlaceRef pStop)
Method sets the association "stop".
|
Leg.Builder |
setStopovers(List<PlaceRef> pStopovers)
Method sets the association "stopovers".
|
protected Builder()
Leg.builder() instead of private constructor to create new builder.protected Builder(Leg pObject)
Leg.builder(Leg) instead of private constructor to create new builder.public Leg.Builder setStart(PlaceRef pStart)
pStart - PlaceRef to which the association "start" should be set.public Leg.Builder setStop(PlaceRef pStop)
pStop - PlaceRef to which the association "stop" should be set.public Leg.Builder setStopovers(List<PlaceRef> pStopovers)
pStopovers - Collection with objects to which the association should be set.public Leg build()
public Leg 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.