Package io.openems.edge.app.heat
Record Class CombinedHeatAndPower.CombinedHeatAndPowerParameter
java.lang.Object
java.lang.Record
io.openems.edge.app.heat.CombinedHeatAndPower.CombinedHeatAndPowerParameter
- All Implemented Interfaces:
RelayProps.RelayContactInformationProvider
,Type.Parameter.BundleProvider
- Enclosing class:
- CombinedHeatAndPower
public static record CombinedHeatAndPower.CombinedHeatAndPowerParameter(ResourceBundle bundle, RelayProps.RelayContactInformation relayContactInformation)
extends Record
implements Type.Parameter.BundleProvider, RelayProps.RelayContactInformationProvider
-
Constructor Summary
ConstructorsConstructorDescriptionCombinedHeatAndPowerParameter
(ResourceBundle bundle, RelayProps.RelayContactInformation relayContactInformation) Creates an instance of aCombinedHeatAndPowerParameter
record class. -
Method Summary
Modifier and TypeMethodDescriptionbundle()
Returns the value of thebundle
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of therelayContactInformation
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CombinedHeatAndPowerParameter
public CombinedHeatAndPowerParameter(ResourceBundle bundle, RelayProps.RelayContactInformation relayContactInformation) Creates an instance of aCombinedHeatAndPowerParameter
record class.- Parameters:
bundle
- the value for thebundle
record componentrelayContactInformation
- the value for therelayContactInformation
record 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)
. -
bundle
Returns the value of thebundle
record component.- Specified by:
bundle
in interfaceType.Parameter.BundleProvider
- Returns:
- the value of the
bundle
record component
-
relayContactInformation
Returns the value of therelayContactInformation
record component.- Specified by:
relayContactInformation
in interfaceRelayProps.RelayContactInformationProvider
- Returns:
- the value of the
relayContactInformation
record component
-