Record Class Agreements
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fi.fingrid.client.model.Agreements
public record Agreements(ZonedDateTime agreementEndDate, ZonedDateTime agreementStartDate, String agreementStatus, String agreementType, MeteringPoint meteringPoint)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAgreements(ZonedDateTime agreementEndDate, ZonedDateTime agreementStartDate, String agreementStatus, String agreementType, MeteringPoint meteringPoint) Creates an instance of aAgreementsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagreementEndDaterecord component.Returns the value of theagreementStartDaterecord component.Returns the value of theagreementStatusrecord component.Returns the value of theagreementTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themeteringPointrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Agreements
public Agreements(ZonedDateTime agreementEndDate, ZonedDateTime agreementStartDate, String agreementStatus, String agreementType, MeteringPoint meteringPoint) Creates an instance of aAgreementsrecord class.- Parameters:
agreementEndDate- the value for theagreementEndDaterecord componentagreementStartDate- the value for theagreementStartDaterecord componentagreementStatus- the value for theagreementStatusrecord componentagreementType- the value for theagreementTyperecord componentmeteringPoint- the value for themeteringPointrecord 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 withObjects::equals(Object,Object). -
agreementEndDate
Returns the value of theagreementEndDaterecord component.- Returns:
- the value of the
agreementEndDaterecord component
-
agreementStartDate
Returns the value of theagreementStartDaterecord component.- Returns:
- the value of the
agreementStartDaterecord component
-
agreementStatus
Returns the value of theagreementStatusrecord component.- Returns:
- the value of the
agreementStatusrecord component
-
agreementType
Returns the value of theagreementTyperecord component.- Returns:
- the value of the
agreementTyperecord component
-
meteringPoint
Returns the value of themeteringPointrecord component.- Returns:
- the value of the
meteringPointrecord component
-