public static class POI.Builder extends Stop.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
POI.builder() instead of private constructor to create new builder. |
protected |
Builder(POI pObject)
Use
POI.builder(POI) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
POI |
build()
Method creates a new instance of class POI.
|
POI |
buildValidated()
Method creates a new validated instance of class POI.
|
POI.Builder |
setDescription(String pDescription)
Method sets the attribute "description".
|
POI.Builder |
setIndex(byte pIndex)
Method sets the attribute "index".
|
POI.Builder |
setLinks(List<LinkObject> pLinks)
Method sets the association "links".
|
POI.Builder |
setName(String pName)
Method sets the attribute "name".
|
protected Builder()
POI.builder() instead of private constructor to create new builder.protected Builder(POI pObject)
POI.builder(POI) instead of private constructor to create new builder.public POI.Builder setName(String pName)
setName in class Stop.BuilderpName - Value to which the attribute "name" should be set.public POI.Builder setLinks(List<LinkObject> pLinks)
setLinks in class Stop.BuilderpLinks - Collection with objects to which the association should be set.public POI.Builder setIndex(byte pIndex)
setIndex in class Stop.BuilderpIndex - Value to which the attribute "index" should be set.public POI.Builder setDescription(String pDescription)
pDescription - Value to which the attribute "description" should be set.public POI build()
build in class Stop.Builderpublic POI buildValidated() throws javax.validation.ConstraintViolationException
buildValidated in class Stop.Builderjavax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2022. All rights reserved.