统一了一下map的命名规则,感觉顺眼多了,采用了xxxMapxxx的命名方式,表示xxx映射到xxx。对见名知义
Map<String,String> levelMap=new HashMap<>();
Map<String,String> levelMapAreaId=new HashMap<>();
Map<String, List<String>> cacheStation = new HashMap<>();
Map<String, List<String>> stationMapManagers = new HashMap<>();
Map<String, Integer> resultMap = new HashMap<>();
Map<String, Integer> countKeyMapAmount = new HashMap<>();
Map<String, List<StationDutiesRoom>> mapRooms = new HashMap<>();
Map<String, List<StationDutiesRoom>> stationIdMapRooms = new HashMap<>();
Map<String, NpcMember> userContainer = groupModel(npcMembers, NpcMember::getId);
Map<String, NpcMember> userIdMapMember = groupModel(npcMembers, NpcMember::getId);
即使写成这样也能准确知道map所要表达的映射关系
val levelMapAreaId=new HashMap<>();
val stationMapManagers = new HashMap<>();
val countKeyMapAmount = new HashMap<>();
val stationIdMapRooms = new HashMap<>();
val userIdMapMember = groupModel(npcMembers, NpcMember::getId);