Package com.io7m.idstore.model
Record Class IdAuditEvent
java.lang.Object
java.lang.Record
com.io7m.idstore.model.IdAuditEvent
- Record Components:
id
- The unique event IDowner
- The event ownertime
- The event timetype
- The event typedata
- The event data
public record IdAuditEvent(long id, UUID owner, OffsetDateTime time, String type, Map<String,String> data)
extends Record
An audit event.
-
Constructor Summary
ConstructorDescriptionIdAuditEvent
(long id, UUID owner, OffsetDateTime time, String type, Map<String, String> data) An audit event. -
Method Summary
Modifier and TypeMethodDescriptiondata()
Returns the value of thedata
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.long
id()
Returns the value of theid
record component.owner()
Returns the value of theowner
record component.time()
Returns the value of thetime
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
IdAuditEvent
An audit event.- Parameters:
id
- The unique event IDowner
- The event ownertime
- The event timetype
- The event typedata
- The event data
-
-
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 '=='. -
id
public long id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
owner
Returns the value of theowner
record component.- Returns:
- the value of the
owner
record component
-
time
Returns the value of thetime
record component.- Returns:
- the value of the
time
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
data
Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-