Package br.unip.aps.geo
Record Class PerfilMunicipio.Mes
java.lang.Object
java.lang.Record
br.unip.aps.geo.PerfilMunicipio.Mes
- Enclosing class:
PerfilMunicipio
Focos de um mes do periodo.
-
Constructor Summary
ConstructorsConstructorDescriptionMes(int ano, int mes, long focos) Creates an instance of aMesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintano()Returns the value of theanorecord component.final booleanIndicates whether some other object is "equal to" this one.longfocos()Returns the value of thefocosrecord component.final inthashCode()Returns a hash code value for this object.intmes()Returns the value of themesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Mes
public Mes(int ano, int mes, long focos) Creates an instance of aMesrecord class.- Parameters:
ano- the value for theanorecord componentmes- the value for themesrecord componentfocos- the value for thefocosrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
ano
public int ano()Returns the value of theanorecord component.- Returns:
- the value of the
anorecord component
-
mes
public int mes()Returns the value of themesrecord component.- Returns:
- the value of the
mesrecord component
-
focos
public long focos()Returns the value of thefocosrecord component.- Returns:
- the value of the
focosrecord component
-