Hi,

ExecutionData is plain data holder. Implementing equals/hashcode semantik is 
always specific to the use case (is it the id? is it more data?). Therefore it 
doesn’t make sense to hardcode a specific semantic into our API.

I recommend using an external Comparator that implements your specific 
requirements.

Regards,
-marc




> On 31. Mar 2020, at 22:58, drekb...@gmail.com wrote:
> 
> I'm writing some code that processes exec data (another variant on per-test 
> metrics). The next task is to compare session instances for equivalence. 
> ExecutionData and ExecutionDataStore are final classes without hashcode, 
> equals or compare methods. They are difficult to treat as entities in their 
> own right instead of anonymous midpoints along the way to a 
> CoverageBuilder/Analyzer (which, by the way, uses those final types and not 
> an interface!).
> 
> My first attempt to build a RoaringBitmap relied on the order of 
> ExecutionData instances provided by EDS#accept(visitor). Seems EDS has-a 
> HashMap so is entirely unreliable wrt order and I'm currently weighing up 
> creating my own EDS.
> 
> Have I missed some utility method?
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jacoco+unsubscr...@googlegroups.com 
> <mailto:jacoco+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/64e1b024-f6bb-4bb0-ba8c-ebaa46f8e8d5%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/64e1b024-f6bb-4bb0-ba8c-ebaa46f8e8d5%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/16A289C3-660B-4E9D-810C-1E1F51929B61%40mountainminds.com.

Reply via email to