Record Class ClusterizacaoHotspots.Resultado

java.lang.Object
java.lang.Record
br.unip.aps.ml.ClusterizacaoHotspots.Resultado
Enclosing class:
ClusterizacaoHotspots

public static record ClusterizacaoHotspots.Resultado(String metodo, List<ClusterizacaoHotspots.Hotspot> hotspots, int[] rotulos, int ruido, List<FocoIncendio> focos) extends Record
Resultado de uma clusterizacao.
  • Constructor Details

    • Resultado

      public Resultado(String metodo, List<ClusterizacaoHotspots.Hotspot> hotspots, int[] rotulos, int ruido, List<FocoIncendio> focos)
      Creates an instance of a Resultado record class.
      Parameters:
      metodo - the value for the metodo record component
      hotspots - the value for the hotspots record component
      rotulos - the value for the rotulos record component
      ruido - the value for the ruido record component
      focos - the value for the focos 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.
    • metodo

      public String metodo()
      Returns the value of the metodo record component.
      Returns:
      the value of the metodo record component
    • hotspots

      public List<ClusterizacaoHotspots.Hotspot> hotspots()
      Returns the value of the hotspots record component.
      Returns:
      the value of the hotspots record component
    • rotulos

      public int[] rotulos()
      Returns the value of the rotulos record component.
      Returns:
      the value of the rotulos record component
    • ruido

      public int ruido()
      Returns the value of the ruido record component.
      Returns:
      the value of the ruido record component
    • focos

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