@Valid public class GeoPosition extends PlaceRef
| Modifier and Type | Class and Description |
|---|---|
static class |
GeoPosition.Builder
Class implements builder to create a new instance of class GeoPosition.
|
| Modifier | Constructor and Description |
|---|---|
protected |
GeoPosition()
Default constructor is only intended to be used for deserialization as many frameworks required that.
|
protected |
GeoPosition(GeoPosition.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
static GeoPosition.Builder |
builder()
Method returns a new builder.
|
static GeoPosition.Builder |
builder(GeoPosition pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
int |
getLatitude()
Method returns the attribute "latitude".
|
int |
getLongitude()
Method returns the attribute "longitude".
|
void |
setLatitude(int pLatitude)
Method sets the attribute "latitude".
|
void |
setLongitude(int pLongitude)
Method sets the attribute "longitude".
|
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
protected GeoPosition()
protected GeoPosition(GeoPosition.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static GeoPosition.Builder builder()
GeoPosition.Builder New builder that can be used to create new GeoPosition objects.public static GeoPosition.Builder builder(GeoPosition pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.GeoPosition.Builder New builder that can be used to create new GeoPosition objects. The method never returns
null.public int getLongitude()
public void setLongitude(int pLongitude)
pLongitude - Value to which the attribute "longitude" should be set.public int getLatitude()
public void setLatitude(int pLatitude)
pLatitude - Value to which the attribute "latitude" should be set.public StringBuilder toStringBuilder(String pIndent)
toStringBuilder in class PlaceRefStringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.