Record Class Register
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.nl.mijn.aansluiting.client.model.Register
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.meter()Returns the value of themeterrecord component.mrid()Returns the value of themridrecord component.Returns the value of thereadingListrecord component.voidsetReadingList(List<Reading> readingList) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Register
Creates an instance of aRegisterrecord class.- Parameters:
meter- the value for themeterrecord componentmrid- the value for themridrecord componentreadingList- the value for thereadingListrecord component
-
-
Method Details
-
setReadingList
-
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 withObjects::equals(Object,Object). -
meter
Returns the value of themeterrecord component.- Returns:
- the value of the
meterrecord component
-
mrid
Returns the value of themridrecord component.- Returns:
- the value of the
mridrecord component
-
readingList
Returns the value of thereadingListrecord component.- Returns:
- the value of the
readingListrecord component
-