Record Class StudyCollaborationTeamRequest
java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.pg.request.StudyCollaborationTeamRequest
public record StudyCollaborationTeamRequest(String studyId, StudyCollaborationTeamRequest.Collaborators coInvestigators, StudyCollaborationTeamRequest.Investigator principalInvestigator, StudyCollaborationTeamRequest.Collaborators coAuthors, StudyCollaborationTeamRequest.Author principalAuthor)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionStudyCollaborationTeamRequest(String studyId, StudyCollaborationTeamRequest.Collaborators coInvestigators, StudyCollaborationTeamRequest.Investigator principalInvestigator, StudyCollaborationTeamRequest.Collaborators coAuthors, StudyCollaborationTeamRequest.Author principalAuthor) Creates an instance of aStudyCollaborationTeamRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoAuthorsrecord component.Returns the value of thecoInvestigatorsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprincipalAuthorrecord component.Returns the value of theprincipalInvestigatorrecord component.studyId()Returns the value of thestudyIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StudyCollaborationTeamRequest
public StudyCollaborationTeamRequest(String studyId, StudyCollaborationTeamRequest.Collaborators coInvestigators, StudyCollaborationTeamRequest.Investigator principalInvestigator, StudyCollaborationTeamRequest.Collaborators coAuthors, StudyCollaborationTeamRequest.Author principalAuthor) Creates an instance of aStudyCollaborationTeamRequestrecord class.- Parameters:
studyId- the value for thestudyIdrecord componentcoInvestigators- the value for thecoInvestigatorsrecord componentprincipalInvestigator- the value for theprincipalInvestigatorrecord componentcoAuthors- the value for thecoAuthorsrecord componentprincipalAuthor- the value for theprincipalAuthorrecord 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 thestudyIdrecord component.- Returns:
- the value of the
studyIdrecord component
-
coInvestigators
Returns the value of thecoInvestigatorsrecord component.- Returns:
- the value of the
coInvestigatorsrecord component
-
principalInvestigator
Returns the value of theprincipalInvestigatorrecord component.- Returns:
- the value of the
principalInvestigatorrecord component
-
coAuthors
Returns the value of thecoAuthorsrecord component.- Returns:
- the value of the
coAuthorsrecord component
-
principalAuthor
Returns the value of theprincipalAuthorrecord component.- Returns:
- the value of the
principalAuthorrecord component
-