Class LocalDate
- java.lang.Object
-
- com.adyen.model.marketpaywebhooks.LocalDate
-
public class LocalDate extends Object
LocalDate
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MONTHstatic StringJSON_PROPERTY_YEAR
-
Constructor Summary
Constructors Constructor Description LocalDate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this LocalDate object is equal to o.static LocalDatefromJson(String jsonString)Create an instance of LocalDate given an JSON stringIntegergetMonth()Get monthIntegergetYear()Get yearinthashCode()LocalDatemonth(Integer month)voidsetMonth(Integer month)voidsetYear(Integer year)StringtoJson()Convert an instance of LocalDate to an JSON stringStringtoString()LocalDateyear(Integer year)
-
-
-
Field Detail
-
JSON_PROPERTY_MONTH
public static final String JSON_PROPERTY_MONTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_YEAR
public static final String JSON_PROPERTY_YEAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMonth
public Integer getMonth()
Get month- Returns:
- month
-
setMonth
public void setMonth(Integer month)
-
getYear
public Integer getYear()
Get year- Returns:
- year
-
setYear
public void setYear(Integer year)
-
equals
public boolean equals(Object o)
Return true if this LocalDate object is equal to o.
-
fromJson
public static LocalDate fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of LocalDate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LocalDate
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to LocalDate
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of LocalDate to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-