Package br.unip.aps.app
Record Class Agregados.Estado
java.lang.Object
java.lang.Record
br.unip.aps.app.Agregados.Estado
- Enclosing class:
Agregados
Focos de um estado num ano (satelite de referencia).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintano()Returns the value of theanorecord component.final booleanIndicates whether some other object is "equal to" this one.estado()Returns the value of theestadorecord component.longfocos()Returns the value of thefocosrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Estado
Creates an instance of aEstadorecord class.- Parameters:
estado- the value for theestadorecord componentano- the value for theanorecord 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 '=='. -
estado
Returns the value of theestadorecord component.- Returns:
- the value of the
estadorecord component
-
ano
public int ano()Returns the value of theanorecord component.- Returns:
- the value of the
anorecord component
-
focos
public long focos()Returns the value of thefocosrecord component.- Returns:
- the value of the
focosrecord component
-