I need something like this:
SomeMap someMap= new someArray;
someArray.put("color","red");
someArray.put("color","black");
someArray.put("brand","coca-cola")
someArray.put("brand","pepsi")
I don't care what the order is. These are the methods I need:
Put key and value:
someArray.put("color","red");
Get by key:
someArray.get("color");
Get all:
someArray.getAll();
Remove all:
someArray.removeAll();
And I also need to be able to copy the structure:
someMap2 = someMap; (not shallow copy)
How can I do it?