Record Class Contract
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fr.enedis.dto.contract.Contract
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontractStatusrecord component.Returns the value of thecontractTyperecord component.Returns the value of thedistributionTariffrecord 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 thelastActivationDaterecord component.Returns the value of thelastDistributionTariffChangeDaterecord component.Returns the value of theoffPeakHoursrecord component.segment()Returns the value of thesegmentrecord component.Returns the value of thesubscribedPowerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Contract
public Contract(String segment, String subscribedPower, String lastActivationDate, String distributionTariff, String offPeakHours, String contractType, String contractStatus, String lastDistributionTariffChangeDate) Creates an instance of aContractrecord class.- Parameters:
segment- the value for thesegmentrecord componentsubscribedPower- the value for thesubscribedPowerrecord componentlastActivationDate- the value for thelastActivationDaterecord componentdistributionTariff- the value for thedistributionTariffrecord componentoffPeakHours- the value for theoffPeakHoursrecord componentcontractType- the value for thecontractTyperecord componentcontractStatus- the value for thecontractStatusrecord componentlastDistributionTariffChangeDate- the value for thelastDistributionTariffChangeDaterecord 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). -
segment
Returns the value of thesegmentrecord component.- Returns:
- the value of the
segmentrecord component
-
subscribedPower
Returns the value of thesubscribedPowerrecord component.- Returns:
- the value of the
subscribedPowerrecord component
-
lastActivationDate
Returns the value of thelastActivationDaterecord component.- Returns:
- the value of the
lastActivationDaterecord component
-
distributionTariff
Returns the value of thedistributionTariffrecord component.- Returns:
- the value of the
distributionTariffrecord component
-
offPeakHours
Returns the value of theoffPeakHoursrecord component.- Returns:
- the value of the
offPeakHoursrecord component
-
contractType
Returns the value of thecontractTyperecord component.- Returns:
- the value of the
contractTyperecord component
-
contractStatus
Returns the value of thecontractStatusrecord component.- Returns:
- the value of the
contractStatusrecord component
-
lastDistributionTariffChangeDate
Returns the value of thelastDistributionTariffChangeDaterecord component.- Returns:
- the value of the
lastDistributionTariffChangeDaterecord component
-