Record Class UtenzeApi.AccountSintetico
java.lang.Object
java.lang.Record
it.unina.picus.utenze.api.UtenzeApi.AccountSintetico
- Record Components:
id- identificativo stabile dell'accountnomeVisualizzato- nome utilizzato nelle listeruolo- ruolo dell'accountstato- stato corrente dell'utenza
- Enclosing interface:
UtenzeApi
public static record UtenzeApi.AccountSintetico(UUID id, String nomeVisualizzato, UtenzeApi.RuoloUtente ruolo, UtenzeApi.StatoUtenza stato)
extends Record
Riferimento minimo a un account, utilizzabile nelle selezioni e negli storici.
-
Constructor Summary
ConstructorsConstructorDescriptionAccountSintetico(UUID id, String nomeVisualizzato, UtenzeApi.RuoloUtente ruolo, UtenzeApi.StatoUtenza stato) Creates an instance of aAccountSinteticorecord 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.id()Returns the value of theidrecord component.Returns the value of thenomeVisualizzatorecord component.ruolo()Returns the value of theruolorecord component.stato()Returns the value of thestatorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccountSintetico
public AccountSintetico(UUID id, String nomeVisualizzato, UtenzeApi.RuoloUtente ruolo, UtenzeApi.StatoUtenza stato) Creates an instance of aAccountSinteticorecord class.- Parameters:
id- the value for theidrecord componentnomeVisualizzato- the value for thenomeVisualizzatorecord componentruolo- the value for theruolorecord componentstato- the value for thestatorecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
nomeVisualizzato
Returns the value of thenomeVisualizzatorecord component.- Returns:
- the value of the
nomeVisualizzatorecord component
-
ruolo
-
stato
-