package test.thread;

import java.util.HashMap;
import java.util.Map;

public class Helper {
  private static Map<String, Map<Long, Long>> m_maps = new HashMap<String, Map<Long, Long>>();

  public synchronized static Map<Long, Long> getMap(String className) {
    Map<Long, Long> result = m_maps.get(className);
    if (result == null) {
      result = new HashMap();
      m_maps.put(className, result);
    }
    
    return result;
  }
  
  public static void reset() {
    m_maps = new HashMap<String, Map<Long, Long>>();    
  }
}
