Record Class OfflineEdgeAlertingSetting
java.lang.Object
java.lang.Record
io.openems.backend.common.alerting.OfflineEdgeAlertingSetting
public record OfflineEdgeAlertingSetting(String edgeId, String userLogin, int delay, ZonedDateTime lastNotification)
extends Record
-
Constructor Summary
ConstructorDescriptionOfflineEdgeAlertingSetting
(String edgeId, String userLogin, int delay, ZonedDateTime lastNotification) Creates an instance of aOfflineEdgeAlertingSetting
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
delay()
Returns the value of thedelay
record component.edgeId()
Returns the value of theedgeId
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 thelastNotification
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuserLogin
record component.
-
Constructor Details
-
OfflineEdgeAlertingSetting
public OfflineEdgeAlertingSetting(String edgeId, String userLogin, int delay, ZonedDateTime lastNotification) Creates an instance of aOfflineEdgeAlertingSetting
record class.- Parameters:
edgeId
- the value for theedgeId
record componentuserLogin
- the value for theuserLogin
record componentdelay
- the value for thedelay
record componentlastNotification
- the value for thelastNotification
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
edgeId
Returns the value of theedgeId
record component.- Returns:
- the value of the
edgeId
record component
-
userLogin
Returns the value of theuserLogin
record component.- Returns:
- the value of the
userLogin
record component
-
delay
public int delay()Returns the value of thedelay
record component.- Returns:
- the value of the
delay
record component
-
lastNotification
Returns the value of thelastNotification
record component.- Returns:
- the value of the
lastNotification
record component
-