[ https://issues.apache.org/jira/browse/LANG-1490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas BARTHE-DEJEAN updated LANG-1490: ---------------------------------------- Description: Currently, a DiffResult and a Diff can only handle the differences of two objects of the same type A, and we cannot set custom differences for a DiffResult<A> if encapsulated objects of type B are different. I suggest to implement a `DiffView class` as a simple `String field`, `String leftValue` and `String rightValue` triplet. I also wrote a `DiffResultView` class holding two objects of type `T` and a list of `DiffView` objects. https://issues.apache.org/jira/browse/LANG-1490 was: Currently, a DiffResult and a Diff can only handle the differences of two objects of the same type A, and we cannot set custom differences for a DiffResult<A> if encapsulated objects of type B are different. I suggest to implement a DiffView class as a simple `String field`, `String leftValue` and `String rightValue` triplet. I also build a DiffResultView holding two objects of type T and a list of DiffView objects. > Create a more generic/string representation of a DiffResult and a Diff > ---------------------------------------------------------------------- > > Key: LANG-1490 > URL: https://issues.apache.org/jira/browse/LANG-1490 > Project: Commons Lang > Issue Type: Wish > Reporter: Nicolas BARTHE-DEJEAN > Priority: Major > Time Spent: 50m > Remaining Estimate: 0h > > Currently, a DiffResult and a Diff can only handle the differences of two > objects of the same type A, and we cannot set custom differences for a > DiffResult<A> if encapsulated objects of type B are different. > I suggest to implement a `DiffView class` as a simple `String field`, `String > leftValue` and `String rightValue` triplet. > I also wrote a `DiffResultView` class holding two objects of type `T` and a > list of `DiffView` objects. > https://issues.apache.org/jira/browse/LANG-1490 -- This message was sent by Atlassian Jira (v8.3.2#803003)