public static class POI.Builder extends Stop.Builder
POI.| 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 attribute
description. |
POI.Builder |
setEvenMoreLinks(Set<SoftLink> pEvenMoreLinks)
Deprecated.
|
POI.Builder |
setIndex(byte pIndex)
Method sets attribute
Stop.index. |
POI.Builder |
setLinks(List<LinkObject> pLinks)
Method sets association
Stop.links. |
POI.Builder |
setName(String pName)
Method sets attribute
Stop.name. |
POI.Builder |
setTheLink(Long pTheLink)
Deprecated.
|
POI.Builder |
setTheSoftLink(SoftLink pTheSoftLink)
Method sets association
Stop.theSoftLink. |
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)
Stop.name.setName in class Stop.BuilderpName - Value to which Stop.name should be set.POI.Builder Instance of this builder to support chaining setters. Method never returns null.public POI.Builder setLinks(List<LinkObject> pLinks)
Stop.links.setLinks in class Stop.BuilderpLinks - Collection to which Stop.links should be set.POI.Builder Instance of this builder to support chaining setters. Method never returns null.public POI.Builder setIndex(byte pIndex)
Stop.index.setIndex in class Stop.BuilderpIndex - Value to which Stop.index should be set.POI.Builder Instance of this builder to support chaining setters. Method never returns null.public POI.Builder setTheSoftLink(SoftLink pTheSoftLink)
Stop.theSoftLink.setTheSoftLink in class Stop.BuilderpTheSoftLink - Value to which Stop.theSoftLink should be set.POI.Builder Instance of this builder to support chaining setters. Method never returns null.public POI.Builder setDescription(String pDescription)
description.pDescription - Value to which description should be set.POI.Builder Instance of this builder to support chaining setters. Method never returns null.@Deprecated public POI.Builder setTheLink(Long pTheLink)
theLink.pTheLink - Value to which theLink should be set.POI.Builder Instance of this builder to support chaining setters. Method never returns null.@Deprecated public POI.Builder setEvenMoreLinks(Set<SoftLink> pEvenMoreLinks)
evenMoreLinks.pEvenMoreLinks - Collection to which evenMoreLinks should be set.POI.Builder Instance of this builder to support chaining setters. Method never returns null.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 © 2023. All rights reserved.