Record Class TimeSeries

java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fi.fingrid.client.model.TimeSeries

public record TimeSeries(String meteringPointEAN, Granularity resolutionDuration, ZonedDateTime start, ZonedDateTime end, String productType, String unitType, String readingType, List<Observation> observations) extends Record
  • Constructor Details

    • TimeSeries

      public TimeSeries(String meteringPointEAN, Granularity resolutionDuration, ZonedDateTime start, ZonedDateTime end, String productType, String unitType, String readingType, List<Observation> observations)
      Creates an instance of a TimeSeries record class.
      Parameters:
      meteringPointEAN - the value for the meteringPointEAN record component
      resolutionDuration - the value for the resolutionDuration record component
      start - the value for the start record component
      end - the value for the end record component
      productType - the value for the productType record component
      unitType - the value for the unitType record component
      readingType - the value for the readingType record component
      observations - the value for the observations 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.
    • meteringPointEAN

      public String meteringPointEAN()
      Returns the value of the meteringPointEAN record component.
      Returns:
      the value of the meteringPointEAN record component
    • resolutionDuration

      public Granularity resolutionDuration()
      Returns the value of the resolutionDuration record component.
      Returns:
      the value of the resolutionDuration record component
    • start

      public ZonedDateTime start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component
    • end

      public ZonedDateTime end()
      Returns the value of the end record component.
      Returns:
      the value of the end record component
    • productType

      public String productType()
      Returns the value of the productType record component.
      Returns:
      the value of the productType record component
    • unitType

      public String unitType()
      Returns the value of the unitType record component.
      Returns:
      the value of the unitType record component
    • readingType

      public String readingType()
      Returns the value of the readingType record component.
      Returns:
      the value of the readingType record component
    • observations

      public List<Observation> observations()
      Returns the value of the observations record component.
      Returns:
      the value of the observations record component