Package br.unip.aps.ml
Record Class PrevisaoFocos.ErroPrevisao
java.lang.Object
java.lang.Record
br.unip.aps.ml.PrevisaoFocos.ErroPrevisao
- Enclosing class:
PrevisaoFocos
public static record PrevisaoFocos.ErroPrevisao(String municipio, YearMonth mes, int real, double previsto)
extends Record
Erro de previsao de um municipio em um mes.
-
Constructor Summary
ConstructorsConstructorDescriptionErroPrevisao(String municipio, YearMonth mes, int real, double previsto) Creates an instance of aErroPrevisaorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doublefinal inthashCode()Returns a hash code value for this object.mes()Returns the value of themesrecord component.Returns the value of themunicipiorecord component.doubleprevisto()Returns the value of theprevistorecord component.intreal()Returns the value of therealrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ErroPrevisao
Creates an instance of aErroPrevisaorecord class.- Parameters:
municipio- the value for themunicipiorecord componentmes- the value for themesrecord componentreal- the value for therealrecord componentprevisto- the value for theprevistorecord component
-
-
Method Details
-
erroAbsoluto
public double erroAbsoluto() -
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
-
real
public int real()Returns the value of therealrecord component.- Returns:
- the value of the
realrecord component
-
previsto
public double previsto()Returns the value of theprevistorecord component.- Returns:
- the value of the
previstorecord component
-