Skip to main content
Post Undeleted by zakmck
deleted 46 characters in body
Source Link
zakmck
  • 3.1k
  • 1
  • 41
  • 64

I've realised this by means of a wrapper. ThisA way, the conversion is done without loosing to retain some type safety and with minimum impact on performance is to use a wrapper.

That class works for This example is about Collection, athe List implementationcase would be very similar and maybe one day I'll write itthat too. If someone else comes before me, please let's share the code.

I've realised this by means of a wrapper. This way, the conversion is done without loosing type safety and with minimum impact on performance.

That class works for Collection, a List implementation would be very similar and maybe one day I'll write it. If someone else comes before me, please let's share the code.

A way to retain some type safety with minimum impact on performance is to use a wrapper. This example is about Collection, the List case would be very similar and maybe one day I'll write that too. If someone else comes before me, please let's share the code.

Post Deleted by zakmck
Source Link
zakmck
  • 3.1k
  • 1
  • 41
  • 64

I've realised this by means of a wrapper. This way, the conversion is done without loosing type safety and with minimum impact on performance.

That class works for Collection, a List implementation would be very similar and maybe one day I'll write it. If someone else comes before me, please let's share the code.