HashMapのIterator

HashMap<String, MyObject> maps = new HashMap<String, MyObject>();


Set<String> keys = maps.keySet();
Iterator<String> iterator = keys.iterator();

while (iterator.hasNext()) {
    String key = iterator.next();
    MyObject object = maps.get(key);
}