Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make DiffableUtils.diff implementation agnostic
DiffableUtils has methods for reading and creating diffs of maps. The two implementation types, a JDK Map or ImmutableOpenMap, have different methods and implementations. However, the format of the diff is always the same, so the diff creation can be shared. This commit creates an internal MapBuilder abstraction to allow both Map and ImmutableOpenMap to produce diffs from the same MapDiff implementation. relates elastic#86239
- Loading branch information