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 aFindEmailRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull String
name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.@NotEmpty(message="\ud559\ubc88/\uc0ac\ubc88\uc740 \ud544\uc218 \uc785\ub825 \ud56d\ubaa9\uc785\ub2c8\ub2e4.") String
Returns the value of theuserNumber
record 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 aFindEmailRequest
record class.- Parameters:
name
- the value for thename
record componentuserNumber
- the value for theuserNumber
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record 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 theuserNumber
record component.- Returns:
- the value of the
userNumber
record component
-