Record Class CESUJoinRequestDataNeedResult
java.lang.Object
java.lang.Record
energy.eddie.api.agnostic.data.needs.CESUJoinRequestDataNeedResult
- All Implemented Interfaces:
DataNeedCalculationResult
public record CESUJoinRequestDataNeedResult(Timeframe permissionTimeframe, Timeframe energyDataTimeframe, List<Granularity> supportedGranularities, Optional<EnergyDirection> energyDirection, Optional<Integer> participationFactor)
extends Record
implements DataNeedCalculationResult
-
Constructor Summary
ConstructorsConstructorDescriptionCESUJoinRequestDataNeedResult(Timeframe permissionTimeframe, Timeframe energyDataTimeframe, List<Granularity> supportedGranularities, Optional<EnergyDirection> energyDirection, Optional<Integer> participationFactor) Creates an instance of aCESUJoinRequestDataNeedResultrecord class.CESUJoinRequestDataNeedResult(Timeframe timeframe, List<Granularity> supportedGranularities) CESUJoinRequestDataNeedResult(Timeframe timeframe, List<Granularity> supportedGranularities, Optional<EnergyDirection> energyDirection, Optional<Integer> participationFactor) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenergyDataTimeframerecord component.Returns the value of theenergyDirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparticipationFactorrecord component.Returns the value of thepermissionTimeframerecord component.Returns the value of thesupportedGranularitiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CESUJoinRequestDataNeedResult
-
CESUJoinRequestDataNeedResult
public CESUJoinRequestDataNeedResult(Timeframe timeframe, List<Granularity> supportedGranularities, Optional<EnergyDirection> energyDirection, Optional<Integer> participationFactor) -
CESUJoinRequestDataNeedResult
public CESUJoinRequestDataNeedResult(Timeframe permissionTimeframe, Timeframe energyDataTimeframe, List<Granularity> supportedGranularities, Optional<EnergyDirection> energyDirection, Optional<Integer> participationFactor) Creates an instance of aCESUJoinRequestDataNeedResultrecord class.- Parameters:
permissionTimeframe- the value for thepermissionTimeframerecord componentenergyDataTimeframe- the value for theenergyDataTimeframerecord componentsupportedGranularities- the value for thesupportedGranularitiesrecord componentenergyDirection- the value for theenergyDirectionrecord componentparticipationFactor- the value for theparticipationFactorrecord 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). -
permissionTimeframe
Returns the value of thepermissionTimeframerecord component.- Returns:
- the value of the
permissionTimeframerecord component
-
energyDataTimeframe
Returns the value of theenergyDataTimeframerecord component.- Returns:
- the value of the
energyDataTimeframerecord component
-
supportedGranularities
Returns the value of thesupportedGranularitiesrecord component.- Returns:
- the value of the
supportedGranularitiesrecord component
-
energyDirection
Returns the value of theenergyDirectionrecord component.- Returns:
- the value of the
energyDirectionrecord component
-
participationFactor
Returns the value of theparticipationFactorrecord component.- Returns:
- the value of the
participationFactorrecord component
-