Class BirthData


  • public class BirthData
    extends Object
    BirthData
    • Constructor Detail

      • BirthData

        public BirthData()
    • Method Detail

      • dateOfBirth

        public BirthData dateOfBirth​(String dateOfBirth)
        The individual's date of birth, in YYYY-MM-DD format.
        Parameters:
        dateOfBirth -
        Returns:
        the current BirthData instance, allowing for method chaining
      • getDateOfBirth

        public String getDateOfBirth()
        The individual's date of birth, in YYYY-MM-DD format.
        Returns:
        dateOfBirth
      • setDateOfBirth

        public void setDateOfBirth​(String dateOfBirth)
        The individual's date of birth, in YYYY-MM-DD format.
        Parameters:
        dateOfBirth -
      • equals

        public boolean equals​(Object o)
        Return true if this BirthData object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static BirthData fromJson​(String jsonString)
                                  throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of BirthData given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of BirthData
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to BirthData
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of BirthData to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException