Record Class AuditEventSnapshot
java.lang.Object
java.lang.Record
io.leandev.appfuse.audit.AuditEventSnapshot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondataJson()Returns the value of thedataJsonrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theprincipalrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AuditEventSnapshot
public AuditEventSnapshot(UUID id, Instant timestamp, String principal, String type, String dataJson) Creates an instance of aAuditEventSnapshotrecord class.- Parameters:
id- the value for theidrecord componenttimestamp- the value for thetimestamprecord componentprincipal- the value for theprincipalrecord componenttype- the value for thetyperecord componentdataJson- the value for thedataJsonrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
principal
Returns the value of theprincipalrecord component.- Returns:
- the value of the
principalrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
dataJson
Returns the value of thedataJsonrecord component.- Returns:
- the value of the
dataJsonrecord component
-