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 Summary
ConstructorsConstructorDescriptionResearchStudySettingsRequest
(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 aResearchStudySettingsRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.endDate()
Returns the value of theendDate
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefundingSource
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelocationId
record component.Returns the value of thenctNumber
record component.Returns the value of thepublicationDate
record component.Returns the value of thepublicationDoi
record component.Returns the value of thepublicationTitle
record component.Returns the value of thestartDate
record component.studyId()
Returns the value of thestudyId
record component.Returns the value of thestudyTitle
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetreatmentModalities
record component.userId()
Returns the value of theuserId
record component.
-
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 aResearchStudySettingsRequest
record class.- Parameters:
studyId
- the value for thestudyId
record componentstudyTitle
- the value for thestudyTitle
record componentdescription
- the value for thedescription
record componentlocationId
- the value for thelocationId
record componenttreatmentModalities
- the value for thetreatmentModalities
record componentfundingSource
- the value for thefundingSource
record componentnctNumber
- the value for thenctNumber
record componentstartDate
- the value for thestartDate
record componentendDate
- the value for theendDate
record componentpublicationTitle
- the value for thepublicationTitle
record componentpublicationDate
- the value for thepublicationDate
record componentpublicationDoi
- the value for thepublicationDoi
record componentuserId
- the value for theuserId
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
studyId
Returns the value of thestudyId
record component.- Returns:
- the value of the
studyId
record component
-
studyTitle
Returns the value of thestudyTitle
record component.- Returns:
- the value of the
studyTitle
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
locationId
Returns the value of thelocationId
record component.- Returns:
- the value of the
locationId
record component
-
treatmentModalities
Returns the value of thetreatmentModalities
record component.- Returns:
- the value of the
treatmentModalities
record component
-
fundingSource
Returns the value of thefundingSource
record component.- Returns:
- the value of the
fundingSource
record component
-
nctNumber
Returns the value of thenctNumber
record component.- Returns:
- the value of the
nctNumber
record component
-
startDate
Returns the value of thestartDate
record component.- Returns:
- the value of the
startDate
record component
-
endDate
Returns the value of theendDate
record component.- Returns:
- the value of the
endDate
record component
-
publicationTitle
Returns the value of thepublicationTitle
record component.- Returns:
- the value of the
publicationTitle
record component
-
publicationDate
Returns the value of thepublicationDate
record component.- Returns:
- the value of the
publicationDate
record component
-
publicationDoi
Returns the value of thepublicationDoi
record component.- Returns:
- the value of the
publicationDoi
record component
-
userId
Returns the value of theuserId
record component.- Returns:
- the value of the
userId
record component
-