Commit a519a66b authored by Danilo Ansaloni's avatar Danilo Ansaloni

Added a method to get an Iterator over the map.

parent de8cec4b
package ch.usi.dag.dislreserver.shadow;
import java.util.Iterator;
import java.util.Map.Entry;
import java.util.concurrent.ConcurrentHashMap;
import ch.usi.dag.dislreserver.exception.DiSLREServerFatalException;
......@@ -65,4 +67,8 @@ public class ShadowObjectTable {
shadowObjects.remove(obj.getId());
}
//TODO: find a more elegant way to allow users to traverse the shadow object table
public static Iterator<Entry<Long, ShadowObject>> getIterator() {
return shadowObjects.entrySet().iterator();
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment