Package br.unip.aps.ml
Record Class BaseMensal.Linha
java.lang.Object
java.lang.Record
br.unip.aps.ml.BaseMensal.Linha
- Enclosing class:
BaseMensal
public static record BaseMensal.Linha(String municipio, YearMonth mes, double[] x, int focos)
extends Record
Uma observacao municipio/mes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfocos()Returns the value of thefocosrecord component.final inthashCode()Returns a hash code value for this object.mes()Returns the value of themesrecord component.Returns the value of themunicipiorecord component.final StringtoString()Returns a string representation of this record class.double[]x()Returns the value of thexrecord component.
-
Constructor Details
-
Linha
Creates an instance of aLinharecord class.- Parameters:
municipio- the value for themunicipiorecord componentmes- the value for themesrecord componentx- the value for thexrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
municipio
Returns the value of themunicipiorecord component.- Returns:
- the value of the
municipiorecord component
-
mes
Returns the value of themesrecord component.- Returns:
- the value of the
mesrecord component
-
x
public double[] x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
focos
public int focos()Returns the value of thefocosrecord component.- Returns:
- the value of the
focosrecord component
-