Record Class RegisterDTO
java.lang.Object
java.lang.Record
com.raphaelsalles.backend.api.dto.auth.RegisterDTO
- Record Components:
login- O email do usuário (único).password- A senha do usuário (mínimo 6 caracteres).name- O nome completo do usuário.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRegisterDTO(@NotBlank @Email String login, @NotBlank @Size(min=6) String password, @NotBlank String name) Creates an instance of aRegisterDTOrecord 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.@NotBlank @Email Stringlogin()Returns the value of theloginrecord component.@NotBlank Stringname()Returns the value of thenamerecord component.@NotBlank @Size(min=6) Stringpassword()Returns the value of thepasswordrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
login
-
password
-
name
-
-
Constructor Details
-
RegisterDTO
-
-
Method Details
-
toString
-
hashCode
-
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). -
login
-
password
-
name
-