Package com.adyen.model.tapi
Class UTMCoordinates
- java.lang.Object
-
- com.adyen.model.tapi.UTMCoordinates
-
public class UTMCoordinates extends Object
UTMCoordinates
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_UT_M_EASTWARDstatic StringJSON_PROPERTY_UT_M_NORTHWARDstatic StringJSON_PROPERTY_UT_M_ZONE
-
Constructor Summary
Constructors Constructor Description UTMCoordinates()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this UTMCoordinates object is equal to o.static UTMCoordinatesfromJson(String jsonString)Create an instance of UTMCoordinates given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetUtMEastward()X-coordinate of the Universal Transverse Mercator coordinate system.StringgetUtMNorthward()Y-coordinate of the Universal Transverse Mercator coordinate system.StringgetUtMZone()UTM grid zone combination of the longitude zone (1 to 60) and the latitude band (C to X, excluding I and O).inthashCode()UTMCoordinatesincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetUtMEastward(String utMEastward)X-coordinate of the Universal Transverse Mercator coordinate system.voidsetUtMNorthward(String utMNorthward)Y-coordinate of the Universal Transverse Mercator coordinate system.voidsetUtMZone(String utMZone)UTM grid zone combination of the longitude zone (1 to 60) and the latitude band (C to X, excluding I and O).StringtoJson()Convert an instance of UTMCoordinates to an JSON stringStringtoString()UTMCoordinatesutMEastward(String utMEastward)X-coordinate of the Universal Transverse Mercator coordinate system.UTMCoordinatesutMNorthward(String utMNorthward)Y-coordinate of the Universal Transverse Mercator coordinate system.UTMCoordinatesutMZone(String utMZone)UTM grid zone combination of the longitude zone (1 to 60) and the latitude band (C to X, excluding I and O).
-
-
-
Field Detail
-
JSON_PROPERTY_UT_M_ZONE
public static final String JSON_PROPERTY_UT_M_ZONE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_UT_M_EASTWARD
public static final String JSON_PROPERTY_UT_M_EASTWARD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_UT_M_NORTHWARD
public static final String JSON_PROPERTY_UT_M_NORTHWARD
- See Also:
- Constant Field Values
-
-
Method Detail
-
utMZone
public UTMCoordinates utMZone(String utMZone)
UTM grid zone combination of the longitude zone (1 to 60) and the latitude band (C to X, excluding I and O).- Parameters:
utMZone- UTM grid zone combination of the longitude zone (1 to 60) and the latitude band (C to X, excluding I and O).- Returns:
- the current
UTMCoordinatesinstance, allowing for method chaining
-
getUtMZone
public String getUtMZone()
UTM grid zone combination of the longitude zone (1 to 60) and the latitude band (C to X, excluding I and O).- Returns:
- utMZone UTM grid zone combination of the longitude zone (1 to 60) and the latitude band (C to X, excluding I and O).
-
setUtMZone
public void setUtMZone(String utMZone)
UTM grid zone combination of the longitude zone (1 to 60) and the latitude band (C to X, excluding I and O).- Parameters:
utMZone- UTM grid zone combination of the longitude zone (1 to 60) and the latitude band (C to X, excluding I and O).
-
utMEastward
public UTMCoordinates utMEastward(String utMEastward)
X-coordinate of the Universal Transverse Mercator coordinate system.- Parameters:
utMEastward- X-coordinate of the Universal Transverse Mercator coordinate system.- Returns:
- the current
UTMCoordinatesinstance, allowing for method chaining
-
getUtMEastward
public String getUtMEastward()
X-coordinate of the Universal Transverse Mercator coordinate system.- Returns:
- utMEastward X-coordinate of the Universal Transverse Mercator coordinate system.
-
setUtMEastward
public void setUtMEastward(String utMEastward)
X-coordinate of the Universal Transverse Mercator coordinate system.- Parameters:
utMEastward- X-coordinate of the Universal Transverse Mercator coordinate system.
-
utMNorthward
public UTMCoordinates utMNorthward(String utMNorthward)
Y-coordinate of the Universal Transverse Mercator coordinate system.- Parameters:
utMNorthward- Y-coordinate of the Universal Transverse Mercator coordinate system.- Returns:
- the current
UTMCoordinatesinstance, allowing for method chaining
-
getUtMNorthward
public String getUtMNorthward()
Y-coordinate of the Universal Transverse Mercator coordinate system.- Returns:
- utMNorthward Y-coordinate of the Universal Transverse Mercator coordinate system.
-
setUtMNorthward
public void setUtMNorthward(String utMNorthward)
Y-coordinate of the Universal Transverse Mercator coordinate system.- Parameters:
utMNorthward- Y-coordinate of the Universal Transverse Mercator coordinate system.
-
includeNullValues
public UTMCoordinates includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this UTMCoordinates object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static UTMCoordinates fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of UTMCoordinates given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UTMCoordinates
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to UTMCoordinates
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of UTMCoordinates to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-