Record Class ComunicazioniApi.AvvisoOperativo
java.lang.Object
java.lang.Record
it.unina.picus.comunicazioni.api.ComunicazioniApi.AvvisoOperativo
- Record Components:
id- identificativo dell'avvisotipo- evento che ha generato l'avvisorichiestaId- riferimento alla richiestacontattoId- riferimento al contatto per gli avvisi di disponibilità, altrimentinullregistratoIl- istante di registrazione dell'avviso
- Enclosing interface:
ComunicazioniApi
-
Constructor Summary
ConstructorsConstructorDescriptionAvvisoOperativo(UUID id, ComunicazioniApi.TipoAvviso tipo, UUID richiestaId, UUID contattoId, Instant registratoIl) Creates an instance of aAvvisoOperativorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontattoIdrecord component.final 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 theregistratoIlrecord component.Returns the value of therichiestaIdrecord component.tipo()Returns the value of thetiporecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AvvisoOperativo
public AvvisoOperativo(UUID id, ComunicazioniApi.TipoAvviso tipo, UUID richiestaId, UUID contattoId, Instant registratoIl) Creates an instance of aAvvisoOperativorecord class.- Parameters:
id- the value for theidrecord componenttipo- the value for thetiporecord componentrichiestaId- the value for therichiestaIdrecord componentcontattoId- the value for thecontattoIdrecord componentregistratoIl- the value for theregistratoIlrecord 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
-
tipo
-
richiestaId
Returns the value of therichiestaIdrecord component.- Returns:
- the value of the
richiestaIdrecord component
-
contattoId
Returns the value of thecontattoIdrecord component.- Returns:
- the value of the
contattoIdrecord component
-
registratoIl
Returns the value of theregistratoIlrecord component.- Returns:
- the value of the
registratoIlrecord component
-