PackedMap does not implement Map interface

Hello to all,
I noticed that the PackedMap does not implement the Map interface.
Is there a good reason for this?
Not implementing this interface makes it difficult to transition from a HashMap to a PackedMap, as we have to manually remove any use of the Entry API.

Hi @amkoullel,

PackedMap does not implement java.util.Map in order to avoid the implementation of Map Entries. This API requires to allocate one dedicated object in the Java heap for each key/value pair, which is not acceptable on devices with low RAM available.

The AbstractPackedMap javadoc gives more details on the implementation:

–Frédéric