Record Class AiidaDataNeedResult
java.lang.Object
java.lang.Record
energy.eddie.api.agnostic.data.needs.AiidaDataNeedResult
- Record Components:
schemas- The schemas that are requested by the data need.supportedSchemas- The schemas that are supported by the data need type.energyTimeframe- The start and end date of the requested data.
- All Implemented Interfaces:
DataNeedCalculationResult
public record AiidaDataNeedResult(Set<AiidaSchema> schemas, Set<AiidaSchema> supportedSchemas, Timeframe energyTimeframe)
extends Record
implements DataNeedCalculationResult
Result type for the calculation of AIIDA data-needs.
-
Constructor Summary
ConstructorsConstructorDescriptionAiidaDataNeedResult(Set<AiidaSchema> schemas, Set<AiidaSchema> supportedSchemas, Timeframe energyTimeframe) Creates an instance of aAiidaDataNeedResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenergyTimeframerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.schemas()Returns the value of theschemasrecord component.Returns the value of thesupportedSchemasrecord component.booleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AiidaDataNeedResult
public AiidaDataNeedResult(Set<AiidaSchema> schemas, Set<AiidaSchema> supportedSchemas, Timeframe energyTimeframe) Creates an instance of aAiidaDataNeedResultrecord class.- Parameters:
schemas- the value for theschemasrecord componentsupportedSchemas- the value for thesupportedSchemasrecord componentenergyTimeframe- the value for theenergyTimeframerecord component
-
-
Method Details
-
supportsAllSchemas
public boolean supportsAllSchemas() -
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). -
schemas
Returns the value of theschemasrecord component.- Returns:
- the value of the
schemasrecord component
-
supportedSchemas
Returns the value of thesupportedSchemasrecord component.- Returns:
- the value of the
supportedSchemasrecord component
-
energyTimeframe
Returns the value of theenergyTimeframerecord component.- Returns:
- the value of the
energyTimeframerecord component
-