1.
List<Map<String, Object>> ItemList = Lists.newArrayList();
List<Map<String, Object>> skipList = Lists.newArrayList();
Map<String, Object> item1 = Maps.newHashMap();
item1.put("name", "001");
item1.put("age", "1");
ItemList.add(item1);
Map<String, Object> item2 = Maps.newHashMap();
item2.put("name", "002");
item2.put("age", "2");
ItemList.add(item2);
skipList.add(item2);
Map<String, Object> item3 = Maps.newHashMap();
item3.put("name", "003");
item3.put("age", "3");
ItemList.add(item3);
skipList.add(item3);
Map<String, Object> item4 = Maps.newHashMap();
item4.put("name", "004");
item4.put("age", "4");
ItemList.add(item4);
Map<String, Object> skipItem4 = Maps.newHashMap();
skipItem4.put("name", "004");
skipItem4.put("age", "4");
skipList.add(skipItem4);
Map<String, Object> item5 = Maps.newHashMap();
item5.put("name", "005");
item5.put("age", "5");
ItemList.add(item5);
for (Map<String, Object> _item : ItemList)
{
out.println("<br/>");
out.println(_item.get("name"));
out.println(_item.get("age"));
out.println(skipList.contains(_item));
}
Java
001 1 false
002 2 true
003 3 true
004 4 true
005 5 false
2.
List<String> pkcProgCd = Lists.newArrayList("70", "80", "90");
if (pkcProgCd.contains(_pkc.get("pkc_prog_cd")))
{
}
Java