Record Class AnnotatedEntityHolder.EntityUpdate
java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.AnnotatedEntityHolder.EntityUpdate
- Enclosing class:
AnnotatedEntityHolder
public static record AnnotatedEntityHolder.EntityUpdate(Entity<?> before, Entity<?> after)
extends Record
A single child entity replacement within an
AnnotatedEntityHolder.-
Constructor Summary
ConstructorsConstructorDescriptionEntityUpdate(Entity<?> before, Entity<?> after) Creates an instance of aEntityUpdaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionEntity<?> after()Returns the value of theafterrecord component.Entity<?> before()Returns the value of thebeforerecord 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.
-
Constructor Details
-
EntityUpdate
-
-
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). -
before
Returns the value of thebeforerecord component.- Returns:
- the value of the
beforerecord component
-
after
Returns the value of theafterrecord component.- Returns:
- the value of the
afterrecord component
-