Package br.unip.aps.busca
Record Class ServicoGeografico.Camada
java.lang.Object
java.lang.Record
br.unip.aps.busca.ServicoGeografico.Camada
- Enclosing class:
ServicoGeografico
public static record ServicoGeografico.Camada(int distancia, int municipios, int comFocos, long focos)
extends Record
Municipios a d fronteiras de distancia de uma origem (busca em largura) e seus focos.
-
Constructor Summary
ConstructorsConstructorDescriptionCamada(int distancia, int municipios, int comFocos, long focos) Creates an instance of aCamadarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcomFocos()Returns the value of thecomFocosrecord component.intReturns the value of thedistanciarecord component.final booleanIndicates whether some other object is "equal to" this one.longfocos()Returns the value of thefocosrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themunicipiosrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Camada
public Camada(int distancia, int municipios, int comFocos, long focos) Creates an instance of aCamadarecord class.- Parameters:
distancia- the value for thedistanciarecord componentmunicipios- the value for themunicipiosrecord componentcomFocos- the value for thecomFocosrecord 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. All components in this record class are compared with '=='. -
distancia
public int distancia()Returns the value of thedistanciarecord component.- Returns:
- the value of the
distanciarecord component
-
municipios
public int municipios()Returns the value of themunicipiosrecord component.- Returns:
- the value of the
municipiosrecord component
-
comFocos
public int comFocos()Returns the value of thecomFocosrecord component.- Returns:
- the value of the
comFocosrecord component
-
focos
public long focos()Returns the value of thefocosrecord component.- Returns:
- the value of the
focosrecord component
-