Package br.unip.aps.analysis
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanos()Returns the value of theanosrecord component.biomas()Returns the value of thebiomasrecord component.dataFim()Returns the value of thedataFimrecord component.Returns the value of thedataIniciorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themunicipiorecord component.booleantest(FocoIncendio f) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TODOS
-
-
Constructor Details
-
FiltroFocos
public FiltroFocos(Set<Integer> anos, Set<String> biomas, String municipio, LocalDate dataInicio, LocalDate dataFim) Creates an instance of aFiltroFocosrecord class.- Parameters:
anos- the value for theanosrecord componentbiomas- the value for thebiomasrecord componentmunicipio- the value for themunicipiorecord componentdataInicio- the value for thedataIniciorecord componentdataFim- the value for thedataFimrecord component
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<FocoIncendio>
-
descricao
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
anos
Returns the value of theanosrecord component.- Returns:
- the value of the
anosrecord component
-
biomas
Returns the value of thebiomasrecord component.- Returns:
- the value of the
biomasrecord component
-
municipio
Returns the value of themunicipiorecord component.- Returns:
- the value of the
municipiorecord component
-
dataInicio
Returns the value of thedataIniciorecord component.- Returns:
- the value of the
dataIniciorecord component
-
dataFim
Returns the value of thedataFimrecord component.- Returns:
- the value of the
dataFimrecord component
-