Record Class WorkflowDiffResultItem
java.lang.Object
java.lang.Record
com.yworkflow.definition.model.diff.WorkflowDiffResultItem
- Record Components:
id- the ID of the element that changedchain- the chain of elements leading to the changed elementerrorType- the type of difference foundinfo- optional additional information about the change
public record WorkflowDiffResultItem(Object id, List<String> chain, ErrorType errorType, String info)
extends Record
Represents a single difference item in a workflow model comparison result. WorkflowDiffResultItem
contains detailed information about a specific difference found between two workflow models.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowDiffResultItem(Object id, List<String> chain, ErrorType errorType) Creates a new WorkflowDiffResultItem without additional info.Creates an instance of aWorkflowDiffResultItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchain()Returns the value of thechainrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorTyperecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.info()Returns the value of theinforecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
WorkflowDiffResultItem
Creates a new WorkflowDiffResultItem without additional info.- Parameters:
id- the ID of the element that changedchain- the chain of elements leading to the changed elementerrorType- the type of difference found
-
WorkflowDiffResultItem
Creates an instance of aWorkflowDiffResultItemrecord class.
-
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
chain
Returns the value of thechainrecord component.- Returns:
- the value of the
chainrecord component
-
errorType
Returns the value of theerrorTyperecord component.- Returns:
- the value of the
errorTyperecord component
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-