Record Class RichiesteApi.AccordoInPresenza

java.lang.Object
java.lang.Record
it.unina.picus.richieste.api.RichiesteApi.AccordoInPresenza
Record Components:
dataOra - istante concordato
luogo - luogo dell'appuntamento
nomeReferente - nome del referente
cognomeReferente - cognome del referente
telefonoReferente - recapito telefonico del referente
All Implemented Interfaces:
RichiesteApi.DettagliAccordo
Enclosing interface:
RichiesteApi

public static record RichiesteApi.AccordoInPresenza(Instant dataOra, String luogo, String nomeReferente, String cognomeReferente, String telefonoReferente) extends Record implements RichiesteApi.DettagliAccordo
Accordo per un appuntamento in presenza. Nome, cognome e telefono sono i soli dati del referente mostrati alla OPT titolare per l'appuntamento.
  • Constructor Details

    • AccordoInPresenza

      public AccordoInPresenza(Instant dataOra, String luogo, String nomeReferente, String cognomeReferente, String telefonoReferente)
      Creates an instance of a AccordoInPresenza record class.
      Parameters:
      dataOra - the value for the dataOra record component
      luogo - the value for the luogo record component
      nomeReferente - the value for the nomeReferente record component
      cognomeReferente - the value for the cognomeReferente record component
      telefonoReferente - the value for the telefonoReferente 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.
    • dataOra

      public Instant dataOra()
      Returns the value of the dataOra record component.
      Returns:
      the value of the dataOra record component
    • luogo

      public String luogo()
      Returns the value of the luogo record component.
      Returns:
      the value of the luogo record component
    • nomeReferente

      public String nomeReferente()
      Returns the value of the nomeReferente record component.
      Returns:
      the value of the nomeReferente record component
    • cognomeReferente

      public String cognomeReferente()
      Returns the value of the cognomeReferente record component.
      Returns:
      the value of the cognomeReferente record component
    • telefonoReferente

      public String telefonoReferente()
      Returns the value of the telefonoReferente record component.
      Returns:
      the value of the telefonoReferente record component