for(SmartCell smartCellFullIds : smartCellList ){
String cellLockerId = smartCellFullIds.getLockerId();
List<String> fullIds2 = new ArrayList<>();
for(int i=0;i<smartCellList.size();i++){
if(cellLockerId.equals(smartCellList.get(i).getLockerId())){
fullIds2.add(smartCellList.get(i).getFullId());
}
}
String[] ownedLockerAndCellIdsArr = new String[fullIds2.size()];
for(int i=0;i<fullIds2.size();i++){
ownedLockerAndCellIdsArr[i] = fullIds2.get(i);
}
ownedLockersAndCells.put(cellLockerId,ownedLockerAndCellIdsArr);
}
特别的map设值
最新推荐文章于 2023-02-01 22:17:32 发布