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 record
static final record
static final record
-
Constructor Summary
ConstructorsConstructorDescriptionStudyCollaborationTeamRequest
(String studyId, StudyCollaborationTeamRequest.Collaborators coInvestigators, StudyCollaborationTeamRequest.Investigator principalInvestigator, StudyCollaborationTeamRequest.Collaborators coAuthors, StudyCollaborationTeamRequest.Author principalAuthor) Creates an instance of aStudyCollaborationTeamRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoAuthors
record component.Returns the value of thecoInvestigators
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theprincipalAuthor
record component.Returns the value of theprincipalInvestigator
record component.studyId()
Returns the value of thestudyId
record component.final String
toString()
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 aStudyCollaborationTeamRequest
record class.- Parameters:
studyId
- the value for thestudyId
record componentcoInvestigators
- the value for thecoInvestigators
record componentprincipalInvestigator
- the value for theprincipalInvestigator
record componentcoAuthors
- the value for thecoAuthors
record componentprincipalAuthor
- the value for theprincipalAuthor
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
-
coInvestigators
Returns the value of thecoInvestigators
record component.- Returns:
- the value of the
coInvestigators
record component
-
principalInvestigator
Returns the value of theprincipalInvestigator
record component.- Returns:
- the value of the
principalInvestigator
record component
-
coAuthors
Returns the value of thecoAuthors
record component.- Returns:
- the value of the
coAuthors
record component
-
principalAuthor
Returns the value of theprincipalAuthor
record component.- Returns:
- the value of the
principalAuthor
record component
-