public static class GeoPosition.Builder extends PlaceRef.Builder
| 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 the attribute "latitude".
|
GeoPosition.Builder |
setLongitude(int pLongitude)
Method sets the attribute "longitude".
|
GeoPosition.Builder |
setName(String pName)
Method sets the attribute "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)
setName in class PlaceRef.BuilderpName - Value to which the attribute "name" should be set.public GeoPosition.Builder setLongitude(int pLongitude)
pLongitude - Value to which the attribute "longitude" should be set.public GeoPosition.Builder setLatitude(int pLatitude)
pLatitude - Value to which the attribute "latitude" should be set.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 © 2022. All rights reserved.