java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fr.enedis.dto.contract.Contract

public record Contract(String segment, String subscribedPower, String lastActivationDate, String distributionTariff, String offPeakHours, String contractType, String contractStatus, String lastDistributionTariffChangeDate) extends Record
  • 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 a Contract record class.
      Parameters:
      segment - the value for the segment record component
      subscribedPower - the value for the subscribedPower record component
      lastActivationDate - the value for the lastActivationDate record component
      distributionTariff - the value for the distributionTariff record component
      offPeakHours - the value for the offPeakHours record component
      contractType - the value for the contractType record component
      contractStatus - the value for the contractStatus record component
      lastDistributionTariffChangeDate - the value for the lastDistributionTariffChangeDate record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • segment

      public String segment()
      Returns the value of the segment record component.
      Returns:
      the value of the segment record component
    • subscribedPower

      public String subscribedPower()
      Returns the value of the subscribedPower record component.
      Returns:
      the value of the subscribedPower record component
    • lastActivationDate

      public String lastActivationDate()
      Returns the value of the lastActivationDate record component.
      Returns:
      the value of the lastActivationDate record component
    • distributionTariff

      public String distributionTariff()
      Returns the value of the distributionTariff record component.
      Returns:
      the value of the distributionTariff record component
    • offPeakHours

      public String offPeakHours()
      Returns the value of the offPeakHours record component.
      Returns:
      the value of the offPeakHours record component
    • contractType

      public String contractType()
      Returns the value of the contractType record component.
      Returns:
      the value of the contractType record component
    • contractStatus

      public String contractStatus()
      Returns the value of the contractStatus record component.
      Returns:
      the value of the contractStatus record component
    • lastDistributionTariffChangeDate

      public String lastDistributionTariffChangeDate()
      Returns the value of the lastDistributionTariffChangeDate record component.
      Returns:
      the value of the lastDistributionTariffChangeDate record component