Record Class EntityPreSaveEvent<K>
java.lang.Object
java.lang.Record
cloud.quinimbus.persistence.api.lifecycle.EntityPreSaveEvent<K>
- All Implemented Interfaces:
EntityDiffEvent, LifecycleEvent<K>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechangedEntityrecord component.diffs()Returns the value of thediffsrecord component.entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from interface EntityDiffEvent
onlyPropertyMutated, propertyMutated, streamDiffsForProperty
-
Constructor Details
-
EntityPreSaveEvent
public EntityPreSaveEvent(Entity<K> entity, Set<Diff<Object>> diffs, Consumer<Entity<K>> changedEntity) Creates an instance of aEntityPreSaveEventrecord class.- Parameters:
entity- the value for theentityrecord componentdiffs- the value for thediffsrecord componentchangedEntity- the value for thechangedEntityrecord 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). -
entity
-
diffs
Returns the value of thediffsrecord component.- Specified by:
diffsin interfaceEntityDiffEvent- Returns:
- the value of the
diffsrecord component
-
changedEntity
-