Package energy.eddie.dataneeds.rules
Record Class DataNeedRule.ValidatedHistoricalDataDataNeedRule
java.lang.Object
java.lang.Record
energy.eddie.dataneeds.rules.DataNeedRule.ValidatedHistoricalDataDataNeedRule
- Record Components:
energyType- the supportedEnergyType.granularities- a list of supportedGranularity.
- All Implemented Interfaces:
DataNeedRule,DataNeedRule.SpecificDataNeedRule<ValidatedHistoricalDataDataNeed>
- Enclosing interface:
DataNeedRule
public static record DataNeedRule.ValidatedHistoricalDataDataNeedRule(EnergyType energyType, List<Granularity> granularities)
extends Record
implements DataNeedRule.SpecificDataNeedRule<ValidatedHistoricalDataDataNeed>
The ValidatedHistoricalDataDataNeedRule specifies one supported variant of the
ValidatedHistoricalDataDataNeed.-
Nested Class Summary
Nested classes/interfaces inherited from interface energy.eddie.dataneeds.rules.DataNeedRule
DataNeedRule.AccountingPointDataNeedRule, DataNeedRule.AllowMultipleDataNeedsRule, DataNeedRule.InboundAiidaDataNeedRule, DataNeedRule.OutboundAiidaDataNeedRule, DataNeedRule.SpecificDataNeedRule<T extends DataNeed>, DataNeedRule.ValidatedHistoricalDataDataNeedRule -
Constructor Summary
ConstructorsConstructorDescriptionValidatedHistoricalDataDataNeedRule(EnergyType energyType, List<Granularity> granularities) Creates an instance of aValidatedHistoricalDataDataNeedRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenergyTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the type of data need that is supported by this rule.getType()This method indicates the type of theDataNeed.Returns the value of thegranularitiesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValidatedHistoricalDataDataNeedRule
Creates an instance of aValidatedHistoricalDataDataNeedRulerecord class.- Parameters:
energyType- the value for theenergyTyperecord componentgranularities- the value for thegranularitiesrecord component
-
-
Method Details
-
getType
Description copied from interface:DataNeedRule.SpecificDataNeedRuleThis method indicates the type of theDataNeed. It returns the simple class name of theDataNeed. Primary used to indicate the type for JSON serialization.- Specified by:
getTypein interfaceDataNeedRule.SpecificDataNeedRule<ValidatedHistoricalDataDataNeed>- Returns:
- the simple class name of the
DataNeed.
-
getDataNeedClass
Description copied from interface:DataNeedRule.SpecificDataNeedRuleReturns the type of data need that is supported by this rule.- Specified by:
getDataNeedClassin interfaceDataNeedRule.SpecificDataNeedRule<ValidatedHistoricalDataDataNeed>- Returns:
- the type of data need that is supported by this rule.
-
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). -
energyType
Returns the value of theenergyTyperecord component.- Returns:
- the value of the
energyTyperecord component
-
granularities
Returns the value of thegranularitiesrecord component.- Returns:
- the value of the
granularitiesrecord component
-