Record Class ComunicazioniApi.AvvisoOperativo

java.lang.Object
java.lang.Record
it.unina.picus.comunicazioni.api.ComunicazioniApi.AvvisoOperativo
Record Components:
id - identificativo dell'avviso
tipo - evento che ha generato l'avviso
richiestaId - riferimento alla richiesta
contattoId - riferimento al contatto per gli avvisi di disponibilità, altrimenti null
registratoIl - istante di registrazione dell'avviso
Enclosing interface:
ComunicazioniApi

public static record ComunicazioniApi.AvvisoOperativo(UUID id, ComunicazioniApi.TipoAvviso tipo, UUID richiestaId, UUID contattoId, Instant registratoIl) extends Record
Avviso di un evento operativo con i riferimenti da usare nel modulo Richieste.
  • Constructor Details

    • AvvisoOperativo

      public AvvisoOperativo(UUID id, ComunicazioniApi.TipoAvviso tipo, UUID richiestaId, UUID contattoId, Instant registratoIl)
      Creates an instance of a AvvisoOperativo record class.
      Parameters:
      id - the value for the id record component
      tipo - the value for the tipo record component
      richiestaId - the value for the richiestaId record component
      contattoId - the value for the contattoId record component
      registratoIl - the value for the registratoIl record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • tipo

      Returns the value of the tipo record component.
      Returns:
      the value of the tipo record component
    • richiestaId

      public UUID richiestaId()
      Returns the value of the richiestaId record component.
      Returns:
      the value of the richiestaId record component
    • contattoId

      public UUID contattoId()
      Returns the value of the contattoId record component.
      Returns:
      the value of the contattoId record component
    • registratoIl

      public Instant registratoIl()
      Returns the value of the registratoIl record component.
      Returns:
      the value of the registratoIl record component