Record Class Materiale
java.lang.Object
java.lang.Record
it.uniupo.simnova.domain.common.Materiale
- Record Components:
- idMateriale- l'identificativo univoco del materiale
- nome- il nome del materiale
- descrizione- una descrizione del materiale
Rappresenta un materiale con un identificativo univoco, un nome e una descrizione.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thedescrizionerecord component.final booleanIndicates whether some other object is "equal to" this one.getId()Restituisce l'identificativo univoco del materiale come Integer.final inthashCode()Returns a hash code value for this object.intReturns the value of theidMaterialerecord component.nome()Returns the value of thenomerecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
MaterialeCreates an instance of aMaterialerecord class.- Parameters:
- idMateriale- the value for the- idMaterialerecord component
- nome- the value for the- nomerecord component
- descrizione- the value for the- descrizionerecord component
 
 
- 
- 
Method Details- 
getIdRestituisce l'identificativo univoco del materiale come Integer. Questo รจ un metodo accessore personalizzato che sovrascrive il comportamento predefinito del record (che altrimenti restituirebbe un 'int' per 'idMateriale()').- Returns:
- L'ID del materiale come Integer.
 
- 
toString
- 
hashCode
- 
equalsIndicates 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.
- 
idMaterialepublic int idMateriale()Returns the value of theidMaterialerecord component.- Returns:
- the value of the idMaterialerecord component
 
- 
nome
- 
descrizioneReturns the value of thedescrizionerecord component.- Returns:
- the value of the descrizionerecord component
 
 
-