Record Class SearchRequestProblemResponse
java.lang.Object
java.lang.Record
inha.git.problem.api.controller.dto.response.SearchRequestProblemResponse
public record SearchRequestProblemResponse(@jakarta.validation.constraints.NotNull int idx, @NotNull String title, @NotNull String team, @NotNull String contents, String originalFileName, String storedFileUrl, @NotNull ProblemRequestStatus problemRequestStatus, SearchUserRequestProblemResponse user, List<ProblemParticipantResponse> participants, Integer projectIdx, @NotNull LocalDateTime createdAt)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSearchRequestProblemResponse
(@jakarta.validation.constraints.NotNull int idx, @NotNull String title, @NotNull String team, @NotNull String contents, String originalFileName, String storedFileUrl, @NotNull ProblemRequestStatus problemRequestStatus, SearchUserRequestProblemResponse user, List<ProblemParticipantResponse> participants, Integer projectIdx, @NotNull LocalDateTime createdAt) Creates an instance of aSearchRequestProblemResponse
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull String
contents()
Returns the value of thecontents
record component.@NotNull LocalDateTime
Returns the value of thecreatedAt
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.@jakarta.validation.constraints.NotNull int
idx()
Returns the value of theidx
record component.Returns the value of theoriginalFileName
record component.Returns the value of theparticipants
record component.@NotNull ProblemRequestStatus
Returns the value of theproblemRequestStatus
record component.Returns the value of theprojectIdx
record component.Returns the value of thestoredFileUrl
record component.@NotNull String
team()
Returns the value of theteam
record component.@NotNull String
title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.user()
Returns the value of theuser
record component.
-
Constructor Details
-
SearchRequestProblemResponse
public SearchRequestProblemResponse(@NotNull @jakarta.validation.constraints.NotNull int idx, @NotNull @NotNull String title, @NotNull @NotNull String team, @NotNull @NotNull String contents, String originalFileName, String storedFileUrl, @NotNull @NotNull ProblemRequestStatus problemRequestStatus, SearchUserRequestProblemResponse user, List<ProblemParticipantResponse> participants, Integer projectIdx, @NotNull @NotNull LocalDateTime createdAt) Creates an instance of aSearchRequestProblemResponse
record class.- Parameters:
idx
- the value for theidx
record componenttitle
- the value for thetitle
record componentteam
- the value for theteam
record componentcontents
- the value for thecontents
record componentoriginalFileName
- the value for theoriginalFileName
record componentstoredFileUrl
- the value for thestoredFileUrl
record componentproblemRequestStatus
- the value for theproblemRequestStatus
record componentuser
- the value for theuser
record componentparticipants
- the value for theparticipants
record componentprojectIdx
- the value for theprojectIdx
record componentcreatedAt
- the value for thecreatedAt
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
idx
@NotNull public @jakarta.validation.constraints.NotNull int idx()Returns the value of theidx
record component.- Returns:
- the value of the
idx
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
team
Returns the value of theteam
record component.- Returns:
- the value of the
team
record component
-
contents
Returns the value of thecontents
record component.- Returns:
- the value of the
contents
record component
-
originalFileName
Returns the value of theoriginalFileName
record component.- Returns:
- the value of the
originalFileName
record component
-
storedFileUrl
Returns the value of thestoredFileUrl
record component.- Returns:
- the value of the
storedFileUrl
record component
-
problemRequestStatus
Returns the value of theproblemRequestStatus
record component.- Returns:
- the value of the
problemRequestStatus
record component
-
user
Returns the value of theuser
record component.- Returns:
- the value of the
user
record component
-
participants
Returns the value of theparticipants
record component.- Returns:
- the value of the
participants
record component
-
projectIdx
Returns the value of theprojectIdx
record component.- Returns:
- the value of the
projectIdx
record component
-
createdAt
Returns the value of thecreatedAt
record component.- Returns:
- the value of the
createdAt
record component
-