Class LocalDate


  • public class LocalDate
    extends Object
    LocalDate
    • Constructor Detail

      • LocalDate

        public LocalDate()
    • 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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