static Map<Integer, FlowTypeEnum> flowTypeMap;
static {
flowTypeMap = Arrays.stream(FlowTypeEnum.values())
.collect(Collectors.toMap(FlowTypeEnum::getValue, map -> map));
}
枚举转map
最新推荐文章于 2024-08-25 04:09:28 发布