Record Class CatalogoApi.OffertaOpt
java.lang.Object
java.lang.Record
it.unina.picus.catalogo.api.CatalogoApi.OffertaOpt
- Record Components:
misuraId- identificativo stabile della misura offertatramiteProfessionista- indica se la OPT si avvale di un professionista esterno
- Enclosing interface:
CatalogoApi
public static record CatalogoApi.OffertaOpt(long misuraId, boolean tramiteProfessionista)
extends Record
Dichiarazione di offerta riferita a una misura del catalogo.
-
Constructor Summary
ConstructorsConstructorDescriptionOffertaOpt(long misuraId, boolean tramiteProfessionista) Creates an instance of aOffertaOptrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longmisuraId()Returns the value of themisuraIdrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetramiteProfessionistarecord component.
-
Constructor Details
-
OffertaOpt
public OffertaOpt(long misuraId, boolean tramiteProfessionista) Creates an instance of aOffertaOptrecord class.- Parameters:
misuraId- the value for themisuraIdrecord componenttramiteProfessionista- the value for thetramiteProfessionistarecord 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 with thecomparemethod from their corresponding wrapper classes. -
misuraId
-
tramiteProfessionista
public boolean tramiteProfessionista()Returns the value of thetramiteProfessionistarecord component.- Returns:
- the value of the
tramiteProfessionistarecord component
-