@Test public void test_toMap() { Map map = FormInputEnumUtils.toMap(RapidAreaEnum.values()); Assert.assertEquals(2,map.size()); Assert.assertTrue(map.containsKey("SH")); Assert.assertTrue(map.containsKey("GD")); Assert.assertTrue(map.containsValue("上海")); Assert.assertTrue(map.containsValue("广东")); }
public static LinkedHashMap<Object,String> toMap(FormInputEnum... arrays) { if(arrays == null) return new LinkedHashMap(0); return toMap(Arrays.asList(arrays)); }
FormInputEnumUtils { public static LinkedHashMap<Object,String> toMap(FormInputEnum... arrays) { if(arrays == null) return new LinkedHashMap(0); return toMap(Arrays.asList(arrays)); } }
FormInputEnumUtils { public static LinkedHashMap<Object,String> toMap(FormInputEnum... arrays) { if(arrays == null) return new LinkedHashMap(0); return toMap(Arrays.asList(arrays)); }  }
FormInputEnumUtils { public static LinkedHashMap<Object,String> toMap(FormInputEnum... arrays) { if(arrays == null) return new LinkedHashMap(0); return toMap(Arrays.asList(arrays)); }  static LinkedHashMap<Object,String> toMap(FormInputEnum... arrays); static LinkedHashMap<Object,String> toMap(Collection<FormInputEnum> list); static LinkedHashMap<Object,String> extractKeyValue(String keyProperty,String valueProperty,Object... arrays); static LinkedHashMap<Object,String> extractKeyValue(String keyProperty,String valueProperty,List arrays); }
FormInputEnumUtils { public static LinkedHashMap<Object,String> toMap(FormInputEnum... arrays) { if(arrays == null) return new LinkedHashMap(0); return toMap(Arrays.asList(arrays)); }  static LinkedHashMap<Object,String> toMap(FormInputEnum... arrays); static LinkedHashMap<Object,String> toMap(Collection<FormInputEnum> list); static LinkedHashMap<Object,String> extractKeyValue(String keyProperty,String valueProperty,Object... arrays); static LinkedHashMap<Object,String> extractKeyValue(String keyProperty,String valueProperty,List arrays);  }