Record Class StudyRequest
java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.pg.request.StudyRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedBy
record component.Returns the value of thedescription
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 theresearchStudyIdentifier
record component.tenantId()
Returns the value of thetenantId
record component.title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thevisibility
record component.
-
Constructor Details
-
StudyRequest
public StudyRequest(String researchStudyIdentifier, String title, String description, String tenantId, String createdBy, Integer visibility) Creates an instance of aStudyRequest
record class.- Parameters:
researchStudyIdentifier
- the value for theresearchStudyIdentifier
record componenttitle
- the value for thetitle
record componentdescription
- the value for thedescription
record componenttenantId
- the value for thetenantId
record componentcreatedBy
- the value for thecreatedBy
record componentvisibility
- the value for thevisibility
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)
. -
researchStudyIdentifier
Returns the value of theresearchStudyIdentifier
record component.- Returns:
- the value of the
researchStudyIdentifier
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
tenantId
Returns the value of thetenantId
record component.- Returns:
- the value of the
tenantId
record component
-
createdBy
Returns the value of thecreatedBy
record component.- Returns:
- the value of the
createdBy
record component
-
visibility
Returns the value of thevisibility
record component.- Returns:
- the value of the
visibility
record component
-