java基础数据结构实例化
Map实例化、map实例化
ImmutableMap.of("id","1","text","甲供","mark",0)
public static final Map<String,String> hhMap=new HashMap<String,String>(){{ put("0","00"); put("1","01"); }};
List实例化、list实例化
public final static ArrayList<Map> brandCategory=new ArrayList<Map>(){{ add(ImmutableMap.of("id","1","text","HPB300","mark",0)); add(ImmutableMap.of("id","2","text","HRB335","mark",0)); add(ImmutableMap.of("id","3","text","HRBF335","mark",0)); add(ImmutableMap.of("id","4","text","HPB400","mark",0)); add(ImmutableMap.of("id","5","text","HPB304","mark",0)); } };