Record Class PerfilMunicipio

java.lang.Object
java.lang.Record
br.unip.aps.geo.PerfilMunicipio

public record PerfilMunicipio(String nome, String nomeInpe, long total, List<Contagem> porAno, List<PerfilMunicipio.Mes> porMes, List<Contagem> biomas, int posicao, int municipiosComFocos, double areaKm2, double latitude, double longitude, List<Contagem> vizinhosComFocos, int vizinhos) extends Record
Ficha de um municipio: focos por ano e por mes, bioma, posicao no ranking do estado e vizinhos com focos.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
    Focos de um mes do periodo.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PerfilMunicipio(String nome, String nomeInpe, long total, List<Contagem> porAno, List<PerfilMunicipio.Mes> porMes, List<Contagem> biomas, int posicao, int municipiosComFocos, double areaKm2, double latitude, double longitude, List<Contagem> vizinhosComFocos, int vizinhos)
    Creates an instance of a PerfilMunicipio record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the areaKm2 record component.
    Bioma com mais focos no municipio, ou vazio.
    Returns the value of the biomas record component.
    de(List<FocoIncendio> focos, String municipio)
    Monta a ficha a partir dos focos; o nome pode vir do INPE ou do IBGE (caixa e acentos sao ignorados).
    double
    Focos por 1.000 km² de area territorial (NaN quando o municipio nao esta na malha do IBGE).
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the latitude record component.
    double
    Returns the value of the longitude record component.
    int
    Returns the value of the municipiosComFocos record component.
    Returns the value of the nome record component.
    Returns the value of the nomeInpe record component.
    Mes com mais focos (o primeiro, em caso de empate), ou null se nao houve focos.
    Returns the value of the porAno record component.
    Returns the value of the porMes record component.
    int
    Returns the value of the posicao record component.
    Fichas de todos os municipios com focos, do que mais queimou para o que menos queimou.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the total record component.
    double
    Variacao percentual entre o primeiro e o ultimo ano (NaN se o primeiro ano nao teve focos).
    int
    Returns the value of the vizinhos record component.
    Returns the value of the vizinhosComFocos record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PerfilMunicipio

      public PerfilMunicipio(String nome, String nomeInpe, long total, List<Contagem> porAno, List<PerfilMunicipio.Mes> porMes, List<Contagem> biomas, int posicao, int municipiosComFocos, double areaKm2, double latitude, double longitude, List<Contagem> vizinhosComFocos, int vizinhos)
      Creates an instance of a PerfilMunicipio record class.
      Parameters:
      nome - the value for the nome record component
      nomeInpe - the value for the nomeInpe record component
      total - the value for the total record component
      porAno - the value for the porAno record component
      porMes - the value for the porMes record component
      biomas - the value for the biomas record component
      posicao - the value for the posicao record component
      municipiosComFocos - the value for the municipiosComFocos record component
      areaKm2 - the value for the areaKm2 record component
      latitude - the value for the latitude record component
      longitude - the value for the longitude record component
      vizinhosComFocos - the value for the vizinhosComFocos record component
      vizinhos - the value for the vizinhos record component
  • Method Details

    • de

      public static PerfilMunicipio de(List<FocoIncendio> focos, String municipio)
      Monta a ficha a partir dos focos; o nome pode vir do INPE ou do IBGE (caixa e acentos sao ignorados).
    • todos

      public static List<PerfilMunicipio> todos(List<FocoIncendio> focos)
      Fichas de todos os municipios com focos, do que mais queimou para o que menos queimou.
    • densidade

      public double densidade()
      Focos por 1.000 km² de area territorial (NaN quando o municipio nao esta na malha do IBGE).
    • biomaPrincipal

      public String biomaPrincipal()
      Bioma com mais focos no municipio, ou vazio.
    • pico

      public PerfilMunicipio.Mes pico()
      Mes com mais focos (o primeiro, em caso de empate), ou null se nao houve focos.
    • variacao

      public double variacao()
      Variacao percentual entre o primeiro e o ultimo ano (NaN se o primeiro ano nao teve focos).
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • nome

      public String nome()
      Returns the value of the nome record component.
      Returns:
      the value of the nome record component
    • nomeInpe

      public String nomeInpe()
      Returns the value of the nomeInpe record component.
      Returns:
      the value of the nomeInpe record component
    • total

      public long total()
      Returns the value of the total record component.
      Returns:
      the value of the total record component
    • porAno

      public List<Contagem> porAno()
      Returns the value of the porAno record component.
      Returns:
      the value of the porAno record component
    • porMes

      public List<PerfilMunicipio.Mes> porMes()
      Returns the value of the porMes record component.
      Returns:
      the value of the porMes record component
    • biomas

      public List<Contagem> biomas()
      Returns the value of the biomas record component.
      Returns:
      the value of the biomas record component
    • posicao

      public int posicao()
      Returns the value of the posicao record component.
      Returns:
      the value of the posicao record component
    • municipiosComFocos

      public int municipiosComFocos()
      Returns the value of the municipiosComFocos record component.
      Returns:
      the value of the municipiosComFocos record component
    • areaKm2

      public double areaKm2()
      Returns the value of the areaKm2 record component.
      Returns:
      the value of the areaKm2 record component
    • latitude

      public double latitude()
      Returns the value of the latitude record component.
      Returns:
      the value of the latitude record component
    • longitude

      public double longitude()
      Returns the value of the longitude record component.
      Returns:
      the value of the longitude record component
    • vizinhosComFocos

      public List<Contagem> vizinhosComFocos()
      Returns the value of the vizinhosComFocos record component.
      Returns:
      the value of the vizinhosComFocos record component
    • vizinhos

      public int vizinhos()
      Returns the value of the vizinhos record component.
      Returns:
      the value of the vizinhos record component