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

    Constructors
    Constructor
    Description
    Raio(String municipio, double raioKm, List<FocoIncendio> focos, long distanciasArvore, long distanciasLinear, long nanosArvore, long nanosLinear, int alturaArvore)
    Creates an instance of a Raio record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the alturaArvore record component.
    long
    Returns the value of the distanciasArvore record component.
    long
    Returns the value of the distanciasLinear record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the focos record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the municipio record component.
    long
    Returns the value of the nanosArvore record component.
    long
    Returns the value of the nanosLinear record component.
    double
    Returns the value of the raioKm record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Raio record class.
      Parameters:
      municipio - the value for the municipio record component
      raioKm - the value for the raioKm record component
      focos - the value for the focos record component
      distanciasArvore - the value for the distanciasArvore record component
      distanciasLinear - the value for the distanciasLinear record component
      nanosArvore - the value for the nanosArvore record component
      nanosLinear - the value for the nanosLinear record component
      alturaArvore - the value for the alturaArvore record component
  • Method Details

    • 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.
    • municipio

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

      public double raioKm()
      Returns the value of the raioKm record component.
      Returns:
      the value of the raioKm record component
    • focos

      public List<FocoIncendio> focos()
      Returns the value of the focos record component.
      Returns:
      the value of the focos record component
    • distanciasArvore

      public long distanciasArvore()
      Returns the value of the distanciasArvore record component.
      Returns:
      the value of the distanciasArvore record component
    • distanciasLinear

      public long distanciasLinear()
      Returns the value of the distanciasLinear record component.
      Returns:
      the value of the distanciasLinear record component
    • nanosArvore

      public long nanosArvore()
      Returns the value of the nanosArvore record component.
      Returns:
      the value of the nanosArvore record component
    • nanosLinear

      public long nanosLinear()
      Returns the value of the nanosLinear record component.
      Returns:
      the value of the nanosLinear record component
    • alturaArvore

      public int alturaArvore()
      Returns the value of the alturaArvore record component.
      Returns:
      the value of the alturaArvore record component