Record Class ValidatedHistoricalDataDataNeedResult
java.lang.Object
java.lang.Record
energy.eddie.api.agnostic.data.needs.ValidatedHistoricalDataDataNeedResult
- Record Components:
granularities- The calculated granularities, which is the intersection of the needed granularities by the data-need and the supported granularities of the region-connector.permissionTimeframe- The timeframe of the permission request. States a start date from which data can be requested and an end date until data can be requested.energyTimeframe- The start and end date of the requested data.
- All Implemented Interfaces:
DataNeedCalculationResult
public record ValidatedHistoricalDataDataNeedResult(List<Granularity> granularities, Timeframe permissionTimeframe, Timeframe energyTimeframe)
extends Record
implements DataNeedCalculationResult
Result type for the calculation of validated historical data data-needs.
-
Constructor Summary
ConstructorsConstructorDescriptionValidatedHistoricalDataDataNeedResult(List<Granularity> granularities, Timeframe permissionTimeframe, Timeframe energyTimeframe) Creates an instance of aValidatedHistoricalDataDataNeedResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenergyTimeframerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegranularitiesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepermissionTimeframerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValidatedHistoricalDataDataNeedResult
public ValidatedHistoricalDataDataNeedResult(List<Granularity> granularities, Timeframe permissionTimeframe, Timeframe energyTimeframe) Creates an instance of aValidatedHistoricalDataDataNeedResultrecord class.- Parameters:
granularities- the value for thegranularitiesrecord componentpermissionTimeframe- the value for thepermissionTimeframerecord componentenergyTimeframe- the value for theenergyTimeframerecord 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). -
granularities
Returns the value of thegranularitiesrecord component.- Returns:
- the value of the
granularitiesrecord component
-
permissionTimeframe
Returns the value of thepermissionTimeframerecord component.- Returns:
- the value of the
permissionTimeframerecord component
-
energyTimeframe
Returns the value of theenergyTimeframerecord component.- Returns:
- the value of the
energyTimeframerecord component
-