| 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 association
start. |
Leg.Builder |
setStop(PlaceRef pStop)
Method sets association
stop. |
Leg.Builder |
setStopovers(List<PlaceRef> pStopovers)
Method sets 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)
start.pStart - Value to which start should be set.Leg.Builder Instance of this builder to support chaining setters. Method never returns null.public Leg.Builder setStop(PlaceRef pStop)
stop.pStop - Value to which stop should be set.Leg.Builder Instance of this builder to support chaining setters. Method never returns null.public Leg.Builder setStopovers(List<PlaceRef> pStopovers)
stopovers.pStopovers - Collection to which stopovers should be set.Leg.Builder Instance of this builder to support chaining setters. Method never returns null.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 © 2023. All rights reserved.