Class BirthData


  • public class BirthData
    extends Object
    BirthData
    • Constructor Detail

      • BirthData

        public BirthData()
    • Method Detail

      • getDateOfBirth

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

        public void setDateOfBirth​(String dateOfBirth)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to BirthData
      • fromJson

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

        public String toJson()
        Convert an instance of BirthData to an JSON string
        Returns:
        JSON string