SQiShER / java-object-diff

Library to diff and merge Java objects with ease
http://sqisher.github.io/java-object-diff/
Apache License 2.0
945 stars 178 forks source link

Suggestion: Put element index in CollectionItemElementSelector #203

Open chenjianjx opened 6 years ago

chenjianjx commented 6 years ago

With that we can build a more readable path, such as /child[0]/name , just like xpath.

plalx commented 6 years ago

I think that by default the CollectionDiffer treats the collection as an unordered set, meaning there's no index.

tadas-subonis commented 5 years ago

I would like to see an option for this as well

adhikari-sakar commented 3 years ago

Is there any update on this suggestion? I desperately would like to see if there is a way to identify the element index for updated collection (List?).