@Test public void registerMLEnvironment() { MLEnvironment mlEnvironment = new MLEnvironment(); Long mlEnvironmentId = MLEnvironmentFactory.registerMLEnvironment(mlEnvironment); Assert.assertSame(MLEnvironmentFactory.get(mlEnvironmentId), mlEnvironment); }
public static synchronized Long registerMLEnvironment(MLEnvironment env) { map.put(nextId, env); return nextId++; }
MLEnvironmentFactory { public static synchronized Long registerMLEnvironment(MLEnvironment env) { map.put(nextId, env); return nextId++; } }
MLEnvironmentFactory { public static synchronized Long registerMLEnvironment(MLEnvironment env) { map.put(nextId, env); return nextId++; }  }
MLEnvironmentFactory { public static synchronized Long registerMLEnvironment(MLEnvironment env) { map.put(nextId, env); return nextId++; }  static synchronized MLEnvironment get(Long mlEnvId); static synchronized MLEnvironment getDefault(); static synchronized void setDefault(MLEnvironment env); static synchronized Long getNewMLEnvironmentId(); static synchronized Long registerMLEnvironment(MLEnvironment env); static synchronized MLEnvironment remove(Long mlEnvId); }
MLEnvironmentFactory { public static synchronized Long registerMLEnvironment(MLEnvironment env) { map.put(nextId, env); return nextId++; }  static synchronized MLEnvironment get(Long mlEnvId); static synchronized MLEnvironment getDefault(); static synchronized void setDefault(MLEnvironment env); static synchronized Long getNewMLEnvironmentId(); static synchronized Long registerMLEnvironment(MLEnvironment env); static synchronized MLEnvironment remove(Long mlEnvId); static final Long DEFAULT_ML_ENVIRONMENT_ID; }