Ability to change header without creating new diff builder
furai opened this issue · 1 comments
Hey,
It would be great to have an ability to change header on the go.
My usecase is that I'm looping through posts in database and after doing some changes to them I'm doing a string diff on that using StrictUnifiedDiffOutputBuilder and then I'm concatenating it into single report file. I've ended up creating new instance of builder each loop just to change the header. Would be nice to have some interface allowing me to change the header for already created diff builder.
Unless I've missed something....
Cheers,
Furai
Hi and thanks for your suggestion!
I think your use-case might be so rare that it might not be enough to change the interface of the builders for it.
The solution you found sounds good to me, although agreed that it might feels a bit much to recreate the builder each iteration, than again it is not very complex of big class/object so....