Package ch.rswk.meta.engine
Record Class AlertRegistry.Alert
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.AlertRegistry.Alert
- Enclosing class:
AlertRegistry
public static record AlertRegistry.Alert(OffsetDateTime timestamp, String name, String message)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAlert
(OffsetDateTime timestamp, String name, String message) Creates an instance of aAlert
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.message()
Returns the value of themessage
record component.name()
Returns the value of thename
record component.Returns the value of thetimestamp
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
timestamp
The field for thetimestamp
record component. -
name
The field for thename
record component. -
message
The field for themessage
record component.
-
-
Constructor Details
-
Alert
Creates an instance of aAlert
record class.- Parameters:
timestamp
- the value for thetimestamp
record componentname
- the value for thename
record componentmessage
- the value for themessage
record component
-
-
Method Details
-
toString
-
hashCode
-
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)
. -
timestamp
Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-