Record Class Utils.ApplyState
java.lang.Object
java.lang.Record
io.openems.edge.controller.ess.timeofusetariff.Utils.ApplyState
- Enclosing class:
Utils
-
Constructor Summary
ConstructorDescriptionApplyState
(StateMachine actualState, Integer setPoint) Creates an instance of aApplyState
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactualState
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.setPoint()
Returns the value of thesetPoint
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ApplyState
Creates an instance of aApplyState
record class.- Parameters:
actualState
- the value for theactualState
record componentsetPoint
- the value for thesetPoint
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)
. -
actualState
Returns the value of theactualState
record component.- Returns:
- the value of the
actualState
record component
-
setPoint
Returns the value of thesetPoint
record component.- Returns:
- the value of the
setPoint
record component
-