Record Class ModelCommitAssignment.RelationshipChange
java.lang.Object
java.lang.Record
io.fluxzero.common.modeling.ModelCommitAssignment.RelationshipChange
- Enclosing class:
ModelCommitAssignment
public static record ModelCommitAssignment.RelationshipChange(String childId, Set<ModelRelationship> desired, boolean deleted)
extends Record
The desired parent set for one child after a relationship-changing target.
-
Constructor Summary
ConstructorsConstructorDescriptionRelationshipChange(String childId, Set<ModelRelationship> desired, boolean deleted) Creates an instance of aRelationshipChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionchildId()Returns the value of thechildIdrecord component.booleandeleted()Returns the value of thedeletedrecord component.desired()Returns the value of thedesiredrecord 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
-
RelationshipChange
Creates an instance of aRelationshipChangerecord class.- Parameters:
childId- the value for thechildIdrecord componentdesired- the value for thedesiredrecord componentdeleted- the value for thedeletedrecord component
-
-
Method Details
-
parentIds
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
childId
Returns the value of thechildIdrecord component.- Returns:
- the value of the
childIdrecord component
-
desired
Returns the value of thedesiredrecord component.- Returns:
- the value of the
desiredrecord component
-
deleted
public boolean deleted()Returns the value of thedeletedrecord component.- Returns:
- the value of the
deletedrecord component
-