public static class GeoPosition.Builder extends PlaceRef.Builder
GeoPosition.| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
GeoPosition.builder() instead of private constructor to create new builder. |
protected |
Builder(GeoPosition pObject)
Use
GeoPosition.builder(GeoPosition) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
GeoPosition |
build()
Method creates a new instance of class GeoPosition.
|
GeoPosition |
buildValidated()
Method creates a new validated instance of class GeoPosition.
|
GeoPosition.Builder |
setLatitude(int pLatitude)
Method sets attribute
latitude. |
GeoPosition.Builder |
setLongitude(int pLongitude)
Method sets attribute
longitude. |
GeoPosition.Builder |
setName(String pName)
Method sets attribute
PlaceRef.name. |
protected Builder()
GeoPosition.builder() instead of private constructor to create new builder.protected Builder(GeoPosition pObject)
GeoPosition.builder(GeoPosition) instead of private constructor to create new builder.public GeoPosition.Builder setName(String pName)
PlaceRef.name.setName in class PlaceRef.BuilderpName - Value to which PlaceRef.name should be set.GeoPosition.Builder Instance of this builder to support chaining setters. Method never returns null.public GeoPosition.Builder setLongitude(int pLongitude)
longitude.pLongitude - Value to which longitude should be set.GeoPosition.Builder Instance of this builder to support chaining setters. Method never returns null.public GeoPosition.Builder setLatitude(int pLatitude)
latitude.pLatitude - Value to which latitude should be set.GeoPosition.Builder Instance of this builder to support chaining setters. Method never returns null.public GeoPosition build()
public GeoPosition 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.