Record Class Account
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.cds.providers.cim.Account
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountNamerecord component.Returns the value of theaccountTyperecord component.Returns the value of thecdsCustomerNumberrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.meters()Returns the value of theserviceContractsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Account
public Account(String cdsCustomerNumber, String accountName, String accountType, List<ServiceContract> serviceContracts) Creates an instance of aAccountrecord class.- Parameters:
cdsCustomerNumber- the value for thecdsCustomerNumberrecord componentaccountName- the value for theaccountNamerecord componentaccountType- the value for theaccountTyperecord componentserviceContracts- the value for theserviceContractsrecord component
-
-
Method Details
-
meters
-
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). -
cdsCustomerNumber
Returns the value of thecdsCustomerNumberrecord component.- Returns:
- the value of the
cdsCustomerNumberrecord component
-
accountName
Returns the value of theaccountNamerecord component.- Returns:
- the value of the
accountNamerecord component
-
accountType
Returns the value of theaccountTyperecord component.- Returns:
- the value of the
accountTyperecord component
-
serviceContracts
Returns the value of theserviceContractsrecord component.- Returns:
- the value of the
serviceContractsrecord component
-