Record Class GoRunningHandler.GoRunningState
java.lang.Object
java.lang.Record
io.openems.edge.battery.fenecon.home.statemachine.GoRunningHandler.GoRunningState
- Enclosing class:
GoRunningHandler
protected static record GoRunningHandler.GoRunningState(GoRunningHandler.SubState subState, Instant lastChange)
extends Record
-
Constructor Summary
ModifierConstructorDescriptionprotected
GoRunningState
(GoRunningHandler.SubState subState, Instant lastChange) Creates an instance of aGoRunningState
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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 thelastChange
record component.subState()
Returns the value of thesubState
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GoRunningState
Creates an instance of aGoRunningState
record class.- Parameters:
subState
- the value for thesubState
record componentlastChange
- the value for thelastChange
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)
. -
subState
Returns the value of thesubState
record component.- Returns:
- the value of the
subState
record component
-
lastChange
Returns the value of thelastChange
record component.- Returns:
- the value of the
lastChange
record component
-