Record Class CatalogoApi.DatiMisura
java.lang.Object
java.lang.Record
it.unina.picus.catalogo.api.CatalogoApi.DatiMisura
- Record Components:
codice- codice della misura nel catalogonome- denominazione mostrata agli utentidescrizione- descrizione della misuraerogabileADistanza- indica se la misura ammette l'erogazione a distanza
- Enclosing interface:
CatalogoApi
-
Constructor Summary
ConstructorsConstructorDescriptionDatiMisura(String codice, String nome, String descrizione, boolean erogabileADistanza) Creates an instance of aDatiMisurarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncodice()Returns the value of thecodicerecord component.Returns the value of thedescrizionerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theerogabileADistanzarecord component.final inthashCode()Returns a hash code value for this object.nome()Returns the value of thenomerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatiMisura
Creates an instance of aDatiMisurarecord class.- Parameters:
codice- the value for thecodicerecord componentnome- the value for thenomerecord componentdescrizione- the value for thedescrizionerecord componenterogabileADistanza- the value for theerogabileADistanzarecord 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. -
codice
-
nome
-
descrizione
Returns the value of thedescrizionerecord component.- Returns:
- the value of the
descrizionerecord component
-
erogabileADistanza
public boolean erogabileADistanza()Returns the value of theerogabileADistanzarecord component.- Returns:
- the value of the
erogabileADistanzarecord component
-