Package br.unip.aps.ui
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanos()Returns the value of theanosrecord component.ate()Returns the value of theaterecord component.booleanativo()biomas()Returns the value of thebiomasrecord component.de()Returns the value of thederecord component.final booleanIndicates whether some other object is "equal to" this one.booleanexato()Returns the value of theexatorecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themunicipiorecord component.semAnos()booleantest(FocoIncendio f) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
VAZIO
-
-
Constructor Details
-
FiltroGlobal
public FiltroGlobal(Set<Integer> anos, Set<String> biomas, String municipio, boolean exato, YearMonth de, YearMonth ate) Creates an instance of aFiltroGlobalrecord class.- Parameters:
anos- the value for theanosrecord componentbiomas- the value for thebiomasrecord componentmunicipio- the value for themunicipiorecord componentexato- the value for theexatorecord componentde- the value for thederecord componentate- the value for theaterecord component
-
-
Method Details
-
paraDominio
-
test
- Specified by:
testin interfacePredicate<FocoIncendio>
-
ativo
public boolean ativo() -
descricoes
-
descricao
-
semBiomas
-
semAnos
-
semMunicipio
-
semPeriodo
-
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 '=='. -
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
-
exato
public boolean exato()Returns the value of theexatorecord component.- Returns:
- the value of the
exatorecord component
-
de
Returns the value of thederecord component.- Returns:
- the value of the
derecord component
-
ate
Returns the value of theaterecord component.- Returns:
- the value of the
aterecord component
-