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 aAlertrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.name()Returns the value of thenamerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
timestamp
The field for thetimestamprecord component. -
name
The field for thenamerecord component. -
message
The field for themessagerecord component.
-
-
Constructor Details
-
Alert
Creates an instance of aAlertrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentname- the value for thenamerecord componentmessage- the value for themessagerecord 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 thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-