@Valid public class SwissGeoPosition extends GeoPosition
| Modifier and Type | Class and Description |
|---|---|
static class |
SwissGeoPosition.Builder
Class implements builder to create a new instance of class SwissGeoPosition.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SwissGeoPosition()
Default constructor is only intended to be used for deserialization as many frameworks required that.
|
protected |
SwissGeoPosition(SwissGeoPosition.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
static SwissGeoPosition.Builder |
builder()
Method returns a new builder.
|
static SwissGeoPosition.Builder |
builder(String pName,
int pLongitude,
int pLatitude)
Method creates a new builder and initializes it with the passed attributes.
|
static SwissGeoPosition.Builder |
builder(SwissGeoPosition pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
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.
|
builder, getLatitude, getLongitude, setLatitude, setLongitudeprotected SwissGeoPosition()
protected SwissGeoPosition(SwissGeoPosition.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static SwissGeoPosition.Builder builder()
SwissGeoPosition.Builder New builder that can be used to create new SwissGeoPosition objects.public static SwissGeoPosition.Builder builder(SwissGeoPosition pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.SwissGeoPosition.Builder New builder that can be used to create new SwissGeoPosition objects. The method never
returns null.public static SwissGeoPosition.Builder builder(String pName, int pLongitude, int pLatitude)
public StringBuilder toStringBuilder(String pIndent)
toStringBuilder in class GeoPositionStringBuilder StringBuilder representing this object. The method never returns null.public String toString()
toString in class GeoPositionString String representation of this object. The method never returns null.Copyright © 2022. All rights reserved.