@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 by tools like Jackson for JSON.
|
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.
|
static GeoPosition.Builder |
builder(String pName,
int pLongitude,
int pLatitude)
Method creates a new builder and initializes it with the passed attributes.
|
int |
getLatitude()
Method returns attribute
latitude. |
int |
getLongitude()
Method returns attribute
longitude. |
void |
setLatitude(int pLatitude)
Method sets attribute
latitude. |
void |
setLongitude(int pLongitude)
Method sets 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 static GeoPosition.Builder builder(String pName, int pLongitude, int pLatitude)
public int getLongitude()
longitude.longitude is set.public void setLongitude(int pLongitude)
longitude.pLongitude - Value to which longitude should be set.public int getLatitude()
latitude.latitude is set.public void setLatitude(int pLatitude)
latitude.pLatitude - Value to which latitude should be set.public StringBuilder toStringBuilder(String pIndent)
toStringBuilder in class PlaceRefStringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2023. All rights reserved.