Record Class StAuditEvent
java.lang.Object
java.lang.Record
com.io7m.stonesignal.server.audit.StAuditEvent
-
Constructor Summary
ConstructorsConstructorDescriptionStAuditEvent(long id, String type, OffsetDateTime time, Map<String, String> data) An audit event. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
StAuditEvent
An audit event.- Parameters:
id- The audit event IDtype- The audit event typetime- The audit event timedata- The audit event data
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
type
-
time
-
data
-