@Test public void testParametersExtraction() { FinalFields finalFields = new FinalFields("test", 10); ParametrizedModel parametrizedModel = new ParametrizedModel(finalFields); assertEquals("test", parametrizedModel.getCachedParameter("a")); assertEquals(10, parametrizedModel.getCachedParameter("b")); }
public Object getCachedParameter(String name) { return parameters.get(name); }
ParametrizedModel implements Describable { public Object getCachedParameter(String name) { return parameters.get(name); } }
ParametrizedModel implements Describable { public Object getCachedParameter(String name) { return parameters.get(name); } ParametrizedModel(Object object); }
ParametrizedModel implements Describable { public Object getCachedParameter(String name) { return parameters.get(name); } ParametrizedModel(Object object); Set<String> getParametersNames(); Object getCachedParameter(String name); Object getParameter(String name); void setParameter(String name, Object value); @Override Description describe(); Map<String, Object> getParameters(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); }
ParametrizedModel implements Describable { public Object getCachedParameter(String name) { return parameters.get(name); } ParametrizedModel(Object object); Set<String> getParametersNames(); Object getCachedParameter(String name); Object getParameter(String name); void setParameter(String name, Object value); @Override Description describe(); Map<String, Object> getParameters(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }