Package energy.eddie.dataneeds.rules
Record Class DataNeedRule.CESUJoinRequestDataNeedRule
java.lang.Object
java.lang.Record
energy.eddie.dataneeds.rules.DataNeedRule.CESUJoinRequestDataNeedRule
- All Implemented Interfaces:
DataNeedRule,DataNeedRule.SpecificDataNeedRule<CESUJoinRequestDataNeed>
- Enclosing interface:
DataNeedRule
public static record DataNeedRule.CESUJoinRequestDataNeedRule(List<Granularity> granularities)
extends Record
implements DataNeedRule.SpecificDataNeedRule<CESUJoinRequestDataNeed>
The CESUJoinRequestDataNeedRule specifies that the region connector supports
CESUJoinRequestDataNeed.-
Nested Class Summary
Nested classes/interfaces inherited from interface energy.eddie.dataneeds.rules.DataNeedRule
DataNeedRule.AccountingPointDataNeedRule, DataNeedRule.AllowMultipleDataNeedsRule, DataNeedRule.CESUJoinRequestDataNeedRule, DataNeedRule.InboundAiidaDataNeedRule, DataNeedRule.OutboundAiidaDataNeedRule, DataNeedRule.SpecificDataNeedRule<T extends DataNeed>, DataNeedRule.ValidatedHistoricalDataDataNeedRule -
Constructor Summary
ConstructorsConstructorDescriptionCESUJoinRequestDataNeedRule(List<Granularity> granularities) Creates an instance of aCESUJoinRequestDataNeedRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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
-
CESUJoinRequestDataNeedRule
Creates an instance of aCESUJoinRequestDataNeedRulerecord class.- Parameters:
granularities- 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<CESUJoinRequestDataNeed>- 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<CESUJoinRequestDataNeed>- 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). -
granularities
Returns the value of thegranularitiesrecord component.- Returns:
- the value of the
granularitiesrecord component
-