Re-populating a static map

Joined
Jul 15, 2009
Messages
4
Reaction score
0
Say I have a Map (static data) which is being used throughout the application and want to repopulate that Map with new current data once per day. What would be the best way to clear out the old data, and repopulate that same Map name without creating multiple references and objects in memory?

Something like:

Code:
mapName.clear();
mapName= createObjectFromXMLFile(sdXML2.toString());

Would this be an issue?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,266
Latest member
DavidaAlla

Latest Threads

Top