Record Class FiltroFocos

java.lang.Object
java.lang.Record
br.unip.aps.analysis.FiltroFocos
All Implemented Interfaces:
Predicate<FocoIncendio>

public record FiltroFocos(Set<Integer> anos, Set<String> biomas, String municipio, LocalDate dataInicio, LocalDate dataFim) extends Record implements Predicate<FocoIncendio>
Filtro combinavel de focos (ano, bioma, municipio e periodo), usado no mapa, nas tabelas e nos graficos do dashboard.
  • Field Details

  • Constructor Details

    • FiltroFocos

      public FiltroFocos(Set<Integer> anos, Set<String> biomas, String municipio, LocalDate dataInicio, LocalDate dataFim)
      Creates an instance of a FiltroFocos record class.
      Parameters:
      anos - the value for the anos record component
      biomas - the value for the biomas record component
      municipio - the value for the municipio record component
      dataInicio - the value for the dataInicio record component
      dataFim - the value for the dataFim record component
  • Method Details

    • test

      public boolean test(FocoIncendio f)
      Specified by:
      test in interface Predicate<FocoIncendio>
    • descricao

      public String descricao()
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • anos

      public Set<Integer> anos()
      Returns the value of the anos record component.
      Returns:
      the value of the anos record component
    • biomas

      public Set<String> biomas()
      Returns the value of the biomas record component.
      Returns:
      the value of the biomas record component
    • municipio

      public String municipio()
      Returns the value of the municipio record component.
      Returns:
      the value of the municipio record component
    • dataInicio

      public LocalDate dataInicio()
      Returns the value of the dataInicio record component.
      Returns:
      the value of the dataInicio record component
    • dataFim

      public LocalDate dataFim()
      Returns the value of the dataFim record component.
      Returns:
      the value of the dataFim record component