Record Class RichiesteApi.AccordoInPresenza
java.lang.Object
java.lang.Record
it.unina.picus.richieste.api.RichiesteApi.AccordoInPresenza
- Record Components:
dataOra- istante concordatoluogo- luogo dell'appuntamentonomeReferente- nome del referentecognomeReferente- cognome del referentetelefonoReferente- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecognomeReferenterecord component.dataOra()Returns the value of thedataOrarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.luogo()Returns the value of theluogorecord component.Returns the value of thenomeReferenterecord component.Returns the value of thetelefonoReferenterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccordoInPresenza
public AccordoInPresenza(Instant dataOra, String luogo, String nomeReferente, String cognomeReferente, String telefonoReferente) Creates an instance of aAccordoInPresenzarecord class.- Parameters:
dataOra- the value for thedataOrarecord componentluogo- the value for theluogorecord componentnomeReferente- the value for thenomeReferenterecord componentcognomeReferente- the value for thecognomeReferenterecord componenttelefonoReferente- the value for thetelefonoReferenterecord 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). -
dataOra
-
luogo
-
nomeReferente
Returns the value of thenomeReferenterecord component.- Returns:
- the value of the
nomeReferenterecord component
-
cognomeReferente
Returns the value of thecognomeReferenterecord component.- Returns:
- the value of the
cognomeReferenterecord component
-
telefonoReferente
Returns the value of thetelefonoReferenterecord component.- Returns:
- the value of the
telefonoReferenterecord component
-