Package br.unip.aps.ml
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 Summary
ConstructorsConstructorDescriptionResultado(String metodo, List<ClusterizacaoHotspots.Hotspot> hotspots, int[] rotulos, int ruido, List<FocoIncendio> focos) Creates an instance of aResultadorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.hotspots()Returns the value of thehotspotsrecord component.metodo()Returns the value of themetodorecord component.int[]rotulos()Returns the value of therotulosrecord component.intruido()Returns the value of theruidorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Resultado
public Resultado(String metodo, List<ClusterizacaoHotspots.Hotspot> hotspots, int[] rotulos, int ruido, List<FocoIncendio> focos) Creates an instance of aResultadorecord class.- Parameters:
metodo- the value for themetodorecord componenthotspots- the value for thehotspotsrecord componentrotulos- the value for therotulosrecord componentruido- the value for theruidorecord componentfocos- the value for thefocosrecord 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 '=='. -
metodo
Returns the value of themetodorecord component.- Returns:
- the value of the
metodorecord component
-
hotspots
Returns the value of thehotspotsrecord component.- Returns:
- the value of the
hotspotsrecord component
-
rotulos
public int[] rotulos()Returns the value of therotulosrecord component.- Returns:
- the value of the
rotulosrecord component
-
ruido
public int ruido()Returns the value of theruidorecord component.- Returns:
- the value of the
ruidorecord component
-
focos
Returns the value of thefocosrecord component.- Returns:
- the value of the
focosrecord component
-