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 aSearchRequestProblemResponserecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringcontents()Returns the value of thecontentsrecord component.@NotNull LocalDateTimeReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@jakarta.validation.constraints.NotNull intidx()Returns the value of theidxrecord component.Returns the value of theoriginalFileNamerecord component.Returns the value of theparticipantsrecord component.@NotNull ProblemRequestStatusReturns the value of theproblemRequestStatusrecord component.Returns the value of theprojectIdxrecord component.Returns the value of thestoredFileUrlrecord component.@NotNull Stringteam()Returns the value of theteamrecord component.@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord 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 aSearchRequestProblemResponserecord class.- Parameters:
idx- the value for theidxrecord componenttitle- the value for thetitlerecord componentteam- the value for theteamrecord componentcontents- the value for thecontentsrecord componentoriginalFileName- the value for theoriginalFileNamerecord componentstoredFileUrl- the value for thestoredFileUrlrecord componentproblemRequestStatus- the value for theproblemRequestStatusrecord componentuser- the value for theuserrecord componentparticipants- the value for theparticipantsrecord componentprojectIdx- the value for theprojectIdxrecord componentcreatedAt- the value for thecreatedAtrecord 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 theidxrecord component.- Returns:
- the value of the
idxrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
team
Returns the value of theteamrecord component.- Returns:
- the value of the
teamrecord component
-
contents
Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
originalFileName
Returns the value of theoriginalFileNamerecord component.- Returns:
- the value of the
originalFileNamerecord component
-
storedFileUrl
Returns the value of thestoredFileUrlrecord component.- Returns:
- the value of the
storedFileUrlrecord component
-
problemRequestStatus
Returns the value of theproblemRequestStatusrecord component.- Returns:
- the value of the
problemRequestStatusrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
participants
Returns the value of theparticipantsrecord component.- Returns:
- the value of the
participantsrecord component
-
projectIdx
Returns the value of theprojectIdxrecord component.- Returns:
- the value of the
projectIdxrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-