Record Class RichiesteApi.Candidato
java.lang.Object
java.lang.Record
it.unina.picus.richieste.api.RichiesteApi.Candidato
- Record Components:
erogatore- opzione compatibile restituita da CatalogocaricoAppuntamenti- conteggio degli appuntamenti assegnati usato per l'ordinamento
- Enclosing interface:
RichiesteApi
public static record RichiesteApi.Candidato(CatalogoApi.ErogatoreCompatibile erogatore, int caricoAppuntamenti)
extends Record
Candidato presentato al Banco per una specifica opzione compatibile.
-
Constructor Summary
ConstructorsConstructorDescriptionCandidato(CatalogoApi.ErogatoreCompatibile erogatore, int caricoAppuntamenti) Creates an instance of aCandidatorecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecaricoAppuntamentirecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerogatorerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Candidato
Creates an instance of aCandidatorecord class.- Parameters:
erogatore- the value for theerogatorerecord componentcaricoAppuntamenti- the value for thecaricoAppuntamentirecord 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. -
erogatore
-
caricoAppuntamenti
public int caricoAppuntamenti()Returns the value of thecaricoAppuntamentirecord component.- Returns:
- the value of the
caricoAppuntamentirecord component
-