@Test public void test() throws InterruptedException { Map<Integer, String> map1 = new LinkedHashMap<Integer, String>(); map1.put(5, "d"); map1.put(1, "a"); map1.put(2, "b"); map1.put(3, "c"); map1.put(4, "c"); DynamicIntegerMapProperty dp = new DynamicIntegerMapProperty("testProperty", map1); Map<Integer, String> current = dp.getMap(); Assert.assertEquals(Arrays.asList(5,1,2,3,4), Lists.newArrayList(current.keySet())); ConfigurationManager.getConfigInstance().setProperty("testProperty", "1=a,2=a,3=a,4=a,5=a,6=a,7=a,8=a,9=a"); current = dp.getMap(); Assert.assertEquals(Arrays.asList(1,2,3,4,5,6,7,8,9), Lists.newArrayList(current.keySet())); }
public Map<TKEY,TVAL> getMap() { return values; }
DynamicMapProperty extends DynamicStringListProperty { public Map<TKEY,TVAL> getMap() { return values; } }
DynamicMapProperty extends DynamicStringListProperty { public Map<TKEY,TVAL> getMap() { return values; } DynamicMapProperty(String propName, String defaultValue, String mapEntryDelimiterRegex);  DynamicMapProperty(String propName, String defaultValue);  DynamicMapProperty(String propName, Map<TKEY, TVAL> defaultValue, String mapEntryDelimiterRegex);  DynamicMapProperty(String propName, Map<TKEY, TVAL> defaultValue); }
DynamicMapProperty extends DynamicStringListProperty { public Map<TKEY,TVAL> getMap() { return values; } DynamicMapProperty(String propName, String defaultValue, String mapEntryDelimiterRegex);  DynamicMapProperty(String propName, String defaultValue);  DynamicMapProperty(String propName, Map<TKEY, TVAL> defaultValue, String mapEntryDelimiterRegex);  DynamicMapProperty(String propName, Map<TKEY, TVAL> defaultValue); Map<TKEY,TVAL> getMap(); Map<TKEY,TVAL> getDefaultValueMap(); }
DynamicMapProperty extends DynamicStringListProperty { public Map<TKEY,TVAL> getMap() { return values; } DynamicMapProperty(String propName, String defaultValue, String mapEntryDelimiterRegex);  DynamicMapProperty(String propName, String defaultValue);  DynamicMapProperty(String propName, Map<TKEY, TVAL> defaultValue, String mapEntryDelimiterRegex);  DynamicMapProperty(String propName, Map<TKEY, TVAL> defaultValue); Map<TKEY,TVAL> getMap(); Map<TKEY,TVAL> getDefaultValueMap();  }