static Map<Integer, FlowTypeEnum> flowTypeMap;
static {
flowTypeMap = Arrays.stream(FlowTypeEnum.values())
.collect(Collectors.toMap(FlowTypeEnum::getValue, map -> map));
}
枚举转map
最新推荐文章于 2023-12-15 10:48:15 发布