Package br.unip.aps.geo
Record Class MalhaMunicipal.Municipio
java.lang.Object
java.lang.Record
br.unip.aps.geo.MalhaMunicipal.Municipio
- Enclosing class:
MalhaMunicipal
public static record MalhaMunicipal.Municipio(String codigo, String nome, String chave, double areaKm2, double latitude, double longitude)
extends Record
Municipio do IBGE com area em km2 e centroide oficial.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleareaKm2()Returns the value of theareaKm2record component.chave()Returns the value of thechaverecord component.codigo()Returns the value of thecodigorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublelatitude()Returns the value of thelatituderecord component.doubleReturns the value of thelongituderecord component.nome()Returns the value of thenomerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Municipio
public Municipio(String codigo, String nome, String chave, double areaKm2, double latitude, double longitude) Creates an instance of aMunicipiorecord class.- Parameters:
codigo- the value for thecodigorecord componentnome- the value for thenomerecord componentchave- the value for thechaverecord componentareaKm2- the value for theareaKm2record componentlatitude- the value for thelatituderecord componentlongitude- the value for thelongituderecord 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 '=='. -
codigo
Returns the value of thecodigorecord component.- Returns:
- the value of the
codigorecord component
-
nome
Returns the value of thenomerecord component.- Returns:
- the value of the
nomerecord component
-
chave
Returns the value of thechaverecord component.- Returns:
- the value of the
chaverecord component
-
areaKm2
public double areaKm2()Returns the value of theareaKm2record component.- Returns:
- the value of the
areaKm2record 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
-