Package br.unip.aps.ml
Record Class ClusterizacaoHotspots.Hotspot
java.lang.Object
java.lang.Record
br.unip.aps.ml.ClusterizacaoHotspots.Hotspot
- Enclosing class:
ClusterizacaoHotspots
public static record ClusterizacaoHotspots.Hotspot(int id, double latitude, double longitude, int focos, double raioKm, String municipioPrincipal, String biomaPredominante, Map<Integer,Integer> focosPorAno)
extends Record
Um hotspot (grupo de focos).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebiomaPredominanterecord component.final booleanIndicates whether some other object is "equal to" this one.intfocos()Returns the value of thefocosrecord component.Returns the value of thefocosPorAnorecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.doublelatitude()Returns the value of thelatituderecord component.doubleReturns the value of thelongituderecord component.Returns the value of themunicipioPrincipalrecord component.doubleraioKm()Returns the value of theraioKmrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Hotspot
public Hotspot(int id, double latitude, double longitude, int focos, double raioKm, String municipioPrincipal, String biomaPredominante, Map<Integer, Integer> focosPorAno) Creates an instance of aHotspotrecord class.- Parameters:
id- the value for theidrecord componentlatitude- the value for thelatituderecord componentlongitude- the value for thelongituderecord componentfocos- the value for thefocosrecord componentraioKm- the value for theraioKmrecord componentmunicipioPrincipal- the value for themunicipioPrincipalrecord componentbiomaPredominante- the value for thebiomaPredominanterecord componentfocosPorAno- the value for thefocosPorAnorecord 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 '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
latitude
public double latitude()Returns the value of thelatituderecord component.- Returns:
- the value of the
latituderecord component
-
longitude
public double longitude()Returns the value of thelongituderecord component.- Returns:
- the value of the
longituderecord component
-
focos
public int focos()Returns the value of thefocosrecord component.- Returns:
- the value of the
focosrecord component
-
raioKm
public double raioKm()Returns the value of theraioKmrecord component.- Returns:
- the value of the
raioKmrecord component
-
municipioPrincipal
Returns the value of themunicipioPrincipalrecord component.- Returns:
- the value of the
municipioPrincipalrecord component
-
biomaPredominante
Returns the value of thebiomaPredominanterecord component.- Returns:
- the value of the
biomaPredominanterecord component
-
focosPorAno
Returns the value of thefocosPorAnorecord component.- Returns:
- the value of the
focosPorAnorecord component
-