Record Class FindEmailRequest
java.lang.Object
java.lang.Record
inha.git.auth.api.controller.dto.request.FindEmailRequest
-
Constructor Summary
ConstructorsConstructorDescriptionFindEmailRequest(@NotNull String name, @NotEmpty(message="\ud559\ubc88/\uc0ac\ubc88\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String userNumber) Creates an instance of aFindEmailRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.@NotEmpty(message="\ud559\ubc88/\uc0ac\ubc88\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") StringReturns the value of theuserNumberrecord component.
-
Constructor Details
-
FindEmailRequest
public FindEmailRequest(@NotNull @NotNull String name, @NotEmpty(message="\ud559\ubc88/\uc0ac\ubc88\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") @NotEmpty(message="\ud559\ubc88/\uc0ac\ubc88\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String userNumber) Creates an instance of aFindEmailRequestrecord class.- Parameters:
name- the value for thenamerecord componentuserNumber- the value for theuserNumberrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
userNumber
@NotEmpty(message="\ud559\ubc88/\uc0ac\ubc88\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") public @NotEmpty(message="\ud559\ubc88/\uc0ac\ubc88\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String userNumber()Returns the value of theuserNumberrecord component.- Returns:
- the value of the
userNumberrecord component
-