public static class Stop.Builder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
Stop.builder() instead of private constructor to create new builder. |
protected |
Builder(Stop pObject)
Use
Stop.builder(Stop) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
Stop |
build()
Method creates a new instance of class Stop.
|
Stop |
buildValidated()
Method creates a new validated instance of class Stop.
|
Stop.Builder |
setIndex(byte pIndex)
Method sets the attribute "index".
|
Stop.Builder |
setLinks(List<LinkObject> pLinks)
Method sets the association "links".
|
Stop.Builder |
setName(String pName)
Method sets the attribute "name".
|
protected Builder()
Stop.builder() instead of private constructor to create new builder.protected Builder(Stop pObject)
Stop.builder(Stop) instead of private constructor to create new builder.public Stop.Builder setName(String pName)
pName - Value to which the attribute "name" should be set.public Stop.Builder setLinks(List<LinkObject> pLinks)
pLinks - Collection with objects to which the association should be set.public Stop.Builder setIndex(byte pIndex)
pIndex - Value to which the attribute "index" should be set.public Stop build()
public Stop 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.