Package com.adyen.model.tapi
Class Point
- java.lang.Object
-
- com.adyen.model.tapi.Point
-
public class Point extends Object
Point
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_Xstatic StringJSON_PROPERTY_Y
-
Constructor Summary
Constructors Constructor Description Point()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this Point object is equal to o.static PointfromJson(String jsonString)Create an instance of Point given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetX()The hexadecimal value of the coordinates of a point on the abscissa.StringgetY()The hexadecimal value of the coordinates of a point on the ordinate.inthashCode()PointincludeNullValues(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.voidsetX(String X)The hexadecimal value of the coordinates of a point on the abscissa.voidsetY(String Y)The hexadecimal value of the coordinates of a point on the ordinate.StringtoJson()Convert an instance of Point to an JSON stringStringtoString()PointX(String X)The hexadecimal value of the coordinates of a point on the abscissa.PointY(String Y)The hexadecimal value of the coordinates of a point on the ordinate.
-
-
-
Field Detail
-
JSON_PROPERTY_X
public static final String JSON_PROPERTY_X
- See Also:
- Constant Field Values
-
JSON_PROPERTY_Y
public static final String JSON_PROPERTY_Y
- See Also:
- Constant Field Values
-
-
Method Detail
-
X
public Point X(String X)
The hexadecimal value of the coordinates of a point on the abscissa.- Parameters:
X- The hexadecimal value of the coordinates of a point on the abscissa.- Returns:
- the current
Pointinstance, allowing for method chaining
-
getX
public String getX()
The hexadecimal value of the coordinates of a point on the abscissa.- Returns:
- X The hexadecimal value of the coordinates of a point on the abscissa.
-
setX
public void setX(String X)
The hexadecimal value of the coordinates of a point on the abscissa.- Parameters:
X- The hexadecimal value of the coordinates of a point on the abscissa.
-
Y
public Point Y(String Y)
The hexadecimal value of the coordinates of a point on the ordinate.- Parameters:
Y- The hexadecimal value of the coordinates of a point on the ordinate.- Returns:
- the current
Pointinstance, allowing for method chaining
-
getY
public String getY()
The hexadecimal value of the coordinates of a point on the ordinate.- Returns:
- Y The hexadecimal value of the coordinates of a point on the ordinate.
-
setY
public void setY(String Y)
The hexadecimal value of the coordinates of a point on the ordinate.- Parameters:
Y- The hexadecimal value of the coordinates of a point on the ordinate.
-
includeNullValues
public Point 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 Point 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 Point fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Point given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Point
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Point
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Point to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-