Record Class EntityPostSaveEvent<K>
java.lang.Object
java.lang.Record
cloud.quinimbus.persistence.api.lifecycle.EntityPostSaveEvent<K>
- All Implemented Interfaces:
EntityDiffEvent
,LifecycleEvent<K>
public record EntityPostSaveEvent<K>(Entity<K> entity, Set<Diff<Object>> diffs)
extends Record
implements LifecycleEvent<K>, EntityDiffEvent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondiffs()
Returns the value of thediffs
record component.entity()
Returns the value of theentity
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.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface cloud.quinimbus.persistence.api.lifecycle.EntityDiffEvent
onlyPropertyMutated, propertyMutated, streamDiffsForProperty
-
Constructor Details
-
EntityPostSaveEvent
Creates an instance of aEntityPostSaveEvent
record class.- Parameters:
entity
- the value for theentity
record componentdiffs
- the value for thediffs
record component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
entity
Returns the value of theentity
record component.- Returns:
- the value of the
entity
record component
-
diffs
Returns the value of thediffs
record component.- Specified by:
diffs
in interfaceEntityDiffEvent
- Returns:
- the value of the
diffs
record component
-