Record Class UserRestApi.UserBasicInfo
java.lang.Object
java.lang.Record
com.modulink.Controller.UserModules.GDU.UserRestApi.UserBasicInfo
- Enclosing class:
UserRestApi
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUserBasicInfo(int id, String nome, String cognome, String email) Creates an instance of aUserBasicInforecord class. -
Method Summary
Modifier and TypeMethodDescriptioncognome()Returns the value of thecognomerecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.nome()Returns the value of thenomerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
private final int idThe field for theidrecord component. -
nome
The field for thenomerecord component. -
cognome
The field for thecognomerecord component. -
email
The field for theemailrecord component.
-
-
Constructor Details
-
UserBasicInfo
Creates an instance of aUserBasicInforecord class.- Parameters:
id- the value for theidrecord componentnome- the value for thenomerecord componentcognome- the value for thecognomerecord componentemail- the value for theemailrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
nome
Returns the value of thenomerecord component.- Returns:
- the value of the
nomerecord component
-
cognome
Returns the value of thecognomerecord component.- Returns:
- the value of the
cognomerecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-