Package ai.mindconnect.adminui.service
Record Class MigrationService.FieldDiff
java.lang.Object
java.lang.Record
ai.mindconnect.adminui.service.MigrationService.FieldDiff
- Enclosing class:
MigrationService
public static record MigrationService.FieldDiff(String field, String before, String after)
extends Record
One top-level field that differs.
before is null when the field
is new, after is null when the bundled version dropped it. Values
are JSON, pretty-printed for objects and arrays.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafter()Returns the value of theafterrecord component.before()Returns the value of thebeforerecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FieldDiff
Creates an instance of aFieldDiffrecord class.- Parameters:
field- the value for thefieldrecord componentbefore- the value for thebeforerecord componentafter- the value for theafterrecord 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). -
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
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
-