Package br.unip.aps.busca
Record Class ServicoGeografico.Raio
java.lang.Object
java.lang.Record
br.unip.aps.busca.ServicoGeografico.Raio
- Enclosing class:
ServicoGeografico
public static record ServicoGeografico.Raio(String municipio, double raioKm, List<FocoIncendio> focos, long distanciasArvore, long distanciasLinear, long nanosArvore, long nanosLinear, int alturaArvore)
extends Record
Focos a ate R km de um ponto, com o custo da arvore k-d contra o calculo de todas as distancias.
-
Constructor Summary
ConstructorsConstructorDescriptionRaio(String municipio, double raioKm, List<FocoIncendio> focos, long distanciasArvore, long distanciasLinear, long nanosArvore, long nanosLinear, int alturaArvore) Creates an instance of aRaiorecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thealturaArvorerecord component.longReturns the value of thedistanciasArvorerecord component.longReturns the value of thedistanciasLinearrecord component.final booleanIndicates whether some other object is "equal to" this one.focos()Returns the value of thefocosrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themunicipiorecord component.longReturns the value of thenanosArvorerecord component.longReturns the value of thenanosLinearrecord component.doubleraioKm()Returns the value of theraioKmrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Raio
public Raio(String municipio, double raioKm, List<FocoIncendio> focos, long distanciasArvore, long distanciasLinear, long nanosArvore, long nanosLinear, int alturaArvore) Creates an instance of aRaiorecord class.- Parameters:
municipio- the value for themunicipiorecord componentraioKm- the value for theraioKmrecord componentfocos- the value for thefocosrecord componentdistanciasArvore- the value for thedistanciasArvorerecord componentdistanciasLinear- the value for thedistanciasLinearrecord componentnanosArvore- the value for thenanosArvorerecord componentnanosLinear- the value for thenanosLinearrecord componentalturaArvore- the value for thealturaArvorerecord component
-
-
Method Details
-
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 '=='. -
municipio
Returns the value of themunicipiorecord component.- Returns:
- the value of the
municipiorecord component
-
raioKm
public double raioKm()Returns the value of theraioKmrecord component.- Returns:
- the value of the
raioKmrecord component
-
focos
Returns the value of thefocosrecord component.- Returns:
- the value of the
focosrecord component
-
distanciasArvore
public long distanciasArvore()Returns the value of thedistanciasArvorerecord component.- Returns:
- the value of the
distanciasArvorerecord component
-
distanciasLinear
public long distanciasLinear()Returns the value of thedistanciasLinearrecord component.- Returns:
- the value of the
distanciasLinearrecord component
-
nanosArvore
public long nanosArvore()Returns the value of thenanosArvorerecord component.- Returns:
- the value of the
nanosArvorerecord component
-
nanosLinear
public long nanosLinear()Returns the value of thenanosLinearrecord component.- Returns:
- the value of the
nanosLinearrecord component
-
alturaArvore
public int alturaArvore()Returns the value of thealturaArvorerecord component.- Returns:
- the value of the
alturaArvorerecord component
-