首页 > 代码库 > java lamda

java lamda

// 查询数据模拟
List<SealListViewVo> list = new ArrayList<SealListViewVo>();

for (int i = 0; i < 50; i++) {

SealListViewVo temp = new SealListViewVo();
String tempjigou = "广州分公司" + String.valueOf(i);

temp.setJigou(tempjigou);
temp.setAnjianhao("1501-2015030003");
temp.setHetongbianma("WMFHTJ150171");

list.add(temp);

}

if (!queryObjs.isEmpty()) {
String jigou = queryObjs.get(0).getValue().toString();

list = list.stream().filter(o -> o.getJigou().equals(jigou)).collect(Collectors.toList());

}

java lamda