public static class Stop.Builder extends Object
Stop.| 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 attribute
index. |
Stop.Builder |
setLinks(List<LinkObject> pLinks)
Method sets association
links. |
Stop.Builder |
setName(String pName)
Method sets attribute
name. |
Stop.Builder |
setTheSoftLink(SoftLink pTheSoftLink)
Method sets association
theSoftLink. |
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)
name.pName - Value to which name should be set.Stop.Builder Instance of this builder to support chaining setters. Method never returns null.public Stop.Builder setLinks(List<LinkObject> pLinks)
links.pLinks - Collection to which links should be set.Stop.Builder Instance of this builder to support chaining setters. Method never returns null.public Stop.Builder setIndex(byte pIndex)
index.pIndex - Value to which index should be set.Stop.Builder Instance of this builder to support chaining setters. Method never returns null.public Stop.Builder setTheSoftLink(SoftLink pTheSoftLink)
theSoftLink.pTheSoftLink - Value to which theSoftLink should be set.Stop.Builder Instance of this builder to support chaining setters. Method never returns null.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 © 2023. All rights reserved.