I am trying to keep a temporary container of a class that contains member :
HashMap myobjectHashMap
A class called my
If you want a copy of the HashMap you need to construct a new one with.
myobjectListB = new HashMap(myobjectListA);
This will create a (shallow) copy of the map.