Record Class RichiesteApi.DatiInvio
java.lang.Object
java.lang.Record
it.unina.picus.richieste.api.RichiesteApi.DatiInvio
- Record Components:
misuraId- identificativo della misura attivatipoDestinatario- distingue una persona da un nucleocomuneCodice- codice del comune della richiestadescription- testo semplice senza identificativi degli assistiti, oppurenull
- Enclosing interface:
RichiesteApi
public static record RichiesteApi.DatiInvio(long misuraId, RichiesteApi.TipoDestinatario tipoDestinatario, String comuneCodice, String description)
extends Record
Dati ammessi dal modulo di invio. L'ingresso web deve rifiutare campi identificativi
aggiuntivi senza riportarne i valori nelle risposte, nella persistenza o nei log.
-
Constructor Summary
ConstructorsConstructorDescriptionDatiInvio(long misuraId, RichiesteApi.TipoDestinatario tipoDestinatario, String comuneCodice, String description) Creates an instance of aDatiInviorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomuneCodicerecord component.Returns the value of thedescriptionrecord 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 thetipoDestinatariorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatiInvio
public DatiInvio(long misuraId, RichiesteApi.TipoDestinatario tipoDestinatario, String comuneCodice, String description) Creates an instance of aDatiInviorecord class.- Parameters:
misuraId- the value for themisuraIdrecord componenttipoDestinatario- the value for thetipoDestinatariorecord componentcomuneCodice- the value for thecomuneCodicerecord componentdescription- the value for thedescriptionrecord 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. -
misuraId
-
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
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-