Record Class RichiesteApi.DettaglioContatto
java.lang.Object
java.lang.Record
it.unina.picus.richieste.api.RichiesteApi.DettaglioContatto
- Record Components:
contatto- contatto ricevuto dall'account interpellatomisuraId- riferimento alla misuranomeMisura- denominazione della misuratipoDestinatario- persona o nucleocomuneCodice- comune della richiesta
- Enclosing interface:
RichiesteApi
public static record RichiesteApi.DettaglioContatto(RichiesteApi.ContattoDisponibilita contatto, long misuraId, String nomeMisura, RichiesteApi.TipoDestinatario tipoDestinatario, String comuneCodice)
extends Record
Proiezione minima della richiesta per verificare la disponibilità.
-
Constructor Summary
ConstructorsConstructorDescriptionDettaglioContatto(RichiesteApi.ContattoDisponibilita contatto, long misuraId, String nomeMisura, RichiesteApi.TipoDestinatario tipoDestinatario, String comuneCodice) Creates an instance of aDettaglioContattorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomuneCodicerecord component.contatto()Returns the value of thecontattorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longmisuraId()Returns the value of themisuraIdrecord component.Returns the value of thenomeMisurarecord component.Returns the value of thetipoDestinatariorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DettaglioContatto
public DettaglioContatto(RichiesteApi.ContattoDisponibilita contatto, long misuraId, String nomeMisura, RichiesteApi.TipoDestinatario tipoDestinatario, String comuneCodice) Creates an instance of aDettaglioContattorecord class.- Parameters:
contatto- the value for thecontattorecord componentmisuraId- the value for themisuraIdrecord componentnomeMisura- the value for thenomeMisurarecord componenttipoDestinatario- the value for thetipoDestinatariorecord componentcomuneCodice- the value for thecomuneCodicerecord 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. -
contatto
-
misuraId
-
nomeMisura
Returns the value of thenomeMisurarecord component.- Returns:
- the value of the
nomeMisurarecord component
-
tipoDestinatario
Returns the value of thetipoDestinatariorecord component.- Returns:
- the value of the
tipoDestinatariorecord component
-
comuneCodice
Returns the value of thecomuneCodicerecord component.- Returns:
- the value of the
comuneCodicerecord component
-