Record Class MonitoraggioApi.Trimestre
java.lang.Object
java.lang.Record
it.unina.picus.monitoraggio.api.MonitoraggioApi.Trimestre
- Record Components:
anno- anno di riferimentonumero- numero del trimestre, da 1 a 4
- Enclosing interface:
MonitoraggioApi
Identificativo di un trimestre di rendicontazione.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintanno()Returns the value of theannorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnumero()Returns the value of thenumerorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Trimestre
public Trimestre(int anno, int numero) Crea un riferimento a un trimestre.- Parameters:
anno- anno di riferimentonumero- numero del trimestre, da 1 a 4- Throws:
IllegalArgumentException- se l'anno non è positivo o il trimestre è fuori intervallo
-
-
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. -
anno
-
numero
-