Record Class FiltroGlobal

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

public record FiltroGlobal(Set<Integer> anos, Set<String> biomas, String municipio, boolean exato, YearMonth de, YearMonth ate) extends Record implements Predicate<FocoIncendio>
Estado da barra de filtros global, compartilhado por Visao geral, Ordenacao e Mapa.
  • Field Details

  • Constructor Details

    • FiltroGlobal

      public FiltroGlobal(Set<Integer> anos, Set<String> biomas, String municipio, boolean exato, YearMonth de, YearMonth ate)
      Creates an instance of a FiltroGlobal 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
      exato - the value for the exato record component
      de - the value for the de record component
      ate - the value for the ate record component
  • Method Details

    • paraDominio

      public FiltroFocos paraDominio()
    • test

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

      public boolean ativo()
    • descricoes

      public List<String> descricoes()
    • descricao

      public String descricao()
    • semBiomas

      public FiltroGlobal semBiomas()
    • semAnos

      public FiltroGlobal semAnos()
    • semMunicipio

      public FiltroGlobal semMunicipio()
    • semPeriodo

      public FiltroGlobal semPeriodo()
    • 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.
    • 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
    • exato

      public boolean exato()
      Returns the value of the exato record component.
      Returns:
      the value of the exato record component
    • de

      public YearMonth de()
      Returns the value of the de record component.
      Returns:
      the value of the de record component
    • ate

      public YearMonth ate()
      Returns the value of the ate record component.
      Returns:
      the value of the ate record component