Record Class ResearchStudySettingsRequest

java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.pg.request.ResearchStudySettingsRequest

public record ResearchStudySettingsRequest(String studyId, String studyTitle, String description, String locationId, String treatmentModalities, String fundingSource, String nctNumber, LocalDate startDate, LocalDate endDate, String publicationTitle, LocalDate publicationDate, String publicationDoi, String userId) extends Record
  • Constructor Details

    • ResearchStudySettingsRequest

      public ResearchStudySettingsRequest(String studyId, String studyTitle, String description, String locationId, String treatmentModalities, String fundingSource, String nctNumber, LocalDate startDate, LocalDate endDate, String publicationTitle, LocalDate publicationDate, String publicationDoi, String userId)
      Creates an instance of a ResearchStudySettingsRequest record class.
      Parameters:
      studyId - the value for the studyId record component
      studyTitle - the value for the studyTitle record component
      description - the value for the description record component
      locationId - the value for the locationId record component
      treatmentModalities - the value for the treatmentModalities record component
      fundingSource - the value for the fundingSource record component
      nctNumber - the value for the nctNumber record component
      startDate - the value for the startDate record component
      endDate - the value for the endDate record component
      publicationTitle - the value for the publicationTitle record component
      publicationDate - the value for the publicationDate record component
      publicationDoi - the value for the publicationDoi record component
      userId - the value for the userId record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • studyId

      public String studyId()
      Returns the value of the studyId record component.
      Returns:
      the value of the studyId record component
    • studyTitle

      public String studyTitle()
      Returns the value of the studyTitle record component.
      Returns:
      the value of the studyTitle record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • locationId

      public String locationId()
      Returns the value of the locationId record component.
      Returns:
      the value of the locationId record component
    • treatmentModalities

      public String treatmentModalities()
      Returns the value of the treatmentModalities record component.
      Returns:
      the value of the treatmentModalities record component
    • fundingSource

      public String fundingSource()
      Returns the value of the fundingSource record component.
      Returns:
      the value of the fundingSource record component
    • nctNumber

      public String nctNumber()
      Returns the value of the nctNumber record component.
      Returns:
      the value of the nctNumber record component
    • startDate

      public LocalDate startDate()
      Returns the value of the startDate record component.
      Returns:
      the value of the startDate record component
    • endDate

      public LocalDate endDate()
      Returns the value of the endDate record component.
      Returns:
      the value of the endDate record component
    • publicationTitle

      public String publicationTitle()
      Returns the value of the publicationTitle record component.
      Returns:
      the value of the publicationTitle record component
    • publicationDate

      public LocalDate publicationDate()
      Returns the value of the publicationDate record component.
      Returns:
      the value of the publicationDate record component
    • publicationDoi

      public String publicationDoi()
      Returns the value of the publicationDoi record component.
      Returns:
      the value of the publicationDoi record component
    • userId

      public String userId()
      Returns the value of the userId record component.
      Returns:
      the value of the userId record component