Package energy.eddie.dataneeds.rules
Record Class DataNeedRule.InboundAiidaDataNeedRule
java.lang.Object
java.lang.Record
energy.eddie.dataneeds.rules.DataNeedRule.InboundAiidaDataNeedRule
- All Implemented Interfaces:
DataNeedRule,DataNeedRule.SpecificDataNeedRule<InboundAiidaDataNeed>
- Enclosing interface:
DataNeedRule
public static record DataNeedRule.InboundAiidaDataNeedRule()
extends Record
implements DataNeedRule.SpecificDataNeedRule<InboundAiidaDataNeed>
The InboundAiidaDataNeedRule specifies one supported variant of the
AiidaDataNeed.-
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
ConstructorsConstructorDescriptionCreates an instance of aInboundAiidaDataNeedRulerecord 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.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InboundAiidaDataNeedRule
public InboundAiidaDataNeedRule()Creates an instance of aInboundAiidaDataNeedRulerecord class.
-
-
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<InboundAiidaDataNeed>- 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<InboundAiidaDataNeed>- 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.
-