Record Class CreateProblemRequest
java.lang.Object
java.lang.Record
inha.git.problem.api.controller.dto.request.CreateProblemRequest
public record CreateProblemRequest(@NotNull String title, @NotNull String duration, @NotNull String contents, @NotNull(message="\ubd84\uc57c\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694.") @Size(min=1,max=1,message="\ud558\ub098\uc758 \ubd84\uc57c\ub9cc \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer> fieldIdxList)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCreateProblemRequest(@NotNull String title, @NotNull String duration, @NotNull String contents, @NotNull(message="\ubd84\uc57c\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694.") @Size(min=1,max=1,message="\ud558\ub098\uc758 \ubd84\uc57c\ub9cc \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer> fieldIdxList) Creates an instance of aCreateProblemRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringcontents()Returns the value of thecontentsrecord component.@NotNull Stringduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull(message="\ubd84\uc57c\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694.") @Size(min=1,max=1,message="\ud558\ub098\uc758 \ubd84\uc57c\ub9cc \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer>Returns the value of thefieldIdxListrecord component.final inthashCode()Returns a hash code value for this object.@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateProblemRequest
public CreateProblemRequest(@NotNull @NotNull String title, @NotNull @NotNull String duration, @NotNull @NotNull String contents, @NotNull(message="\ubd84\uc57c\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694.") @Size(min=1,max=1,message="\ud558\ub098\uc758 \ubd84\uc57c\ub9cc \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") @NotNull(message="\ubd84\uc57c\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694.") @Size(min=1,max=1,message="\ud558\ub098\uc758 \ubd84\uc57c\ub9cc \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer> fieldIdxList) Creates an instance of aCreateProblemRequestrecord class.- Parameters:
title- the value for thetitlerecord componentduration- the value for thedurationrecord componentcontents- the value for thecontentsrecord componentfieldIdxList- the value for thefieldIdxListrecord 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). -
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
-
contents
Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
fieldIdxList
@NotNull(message="\ubd84\uc57c\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694.") @Size(min=1, max=1, message="\ud558\ub098\uc758 \ubd84\uc57c\ub9cc \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") public @NotNull(message="\ubd84\uc57c\ub97c \uc120\ud0dd\ud574\uc8fc\uc138\uc694.") @Size(min=1,max=1,message="\ud558\ub098\uc758 \ubd84\uc57c\ub9cc \uc120\ud0dd\ud574\uc57c \ud569\ub2c8\ub2e4.") List<Integer> fieldIdxList()Returns the value of thefieldIdxListrecord component.- Returns:
- the value of the
fieldIdxListrecord component
-