Record Class SearchProblemsResponse
java.lang.Object
java.lang.Record
inha.git.problem.api.controller.dto.response.SearchProblemsResponse
public record SearchProblemsResponse(@jakarta.validation.constraints.NotNull int idx, @NotNull String title, @NotNull String duration, @NotNull LocalDateTime createdAt, @jakarta.validation.constraints.NotNull int participantCount, @NotNull ProblemStatus status, @jakarta.validation.constraints.NotNull boolean hasAttachment, List<SearchFieldResponse> fieldList, @NotNull SearchUserResponse author)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSearchProblemsResponse(@jakarta.validation.constraints.NotNull int idx, @NotNull String title, @NotNull String duration, @NotNull LocalDateTime createdAt, @jakarta.validation.constraints.NotNull int participantCount, @NotNull ProblemStatus status, @jakarta.validation.constraints.NotNull boolean hasAttachment, List<SearchFieldResponse> fieldList, @NotNull SearchUserResponse author) Creates an instance of aSearchProblemsResponserecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull SearchUserResponseauthor()Returns the value of theauthorrecord component.@NotNull LocalDateTimeReturns the value of thecreatedAtrecord component.@NotNull Stringduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldListrecord component.@jakarta.validation.constraints.NotNull booleanReturns the value of thehasAttachmentrecord component.final inthashCode()Returns a hash code value for this object.@jakarta.validation.constraints.NotNull intidx()Returns the value of theidxrecord component.@jakarta.validation.constraints.NotNull intReturns the value of theparticipantCountrecord component.@NotNull ProblemStatusstatus()Returns the value of thestatusrecord component.@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearchProblemsResponse
public SearchProblemsResponse(@NotNull @jakarta.validation.constraints.NotNull int idx, @NotNull @NotNull String title, @NotNull @NotNull String duration, @NotNull @NotNull LocalDateTime createdAt, @NotNull @jakarta.validation.constraints.NotNull int participantCount, @NotNull @NotNull ProblemStatus status, @NotNull @jakarta.validation.constraints.NotNull boolean hasAttachment, List<SearchFieldResponse> fieldList, @NotNull @NotNull SearchUserResponse author) Creates an instance of aSearchProblemsResponserecord class.- Parameters:
idx- the value for theidxrecord componenttitle- the value for thetitlerecord componentduration- the value for thedurationrecord componentcreatedAt- the value for thecreatedAtrecord componentparticipantCount- the value for theparticipantCountrecord componentstatus- the value for thestatusrecord componenthasAttachment- the value for thehasAttachmentrecord componentfieldList- the value for thefieldListrecord componentauthor- the value for theauthorrecord 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
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
participantCount
@NotNull public @jakarta.validation.constraints.NotNull int participantCount()Returns the value of theparticipantCountrecord component.- Returns:
- the value of the
participantCountrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
hasAttachment
@NotNull public @jakarta.validation.constraints.NotNull boolean hasAttachment()Returns the value of thehasAttachmentrecord component.- Returns:
- the value of the
hasAttachmentrecord component
-
fieldList
Returns the value of thefieldListrecord component.- Returns:
- the value of the
fieldListrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-