创建map的同时赋值
Map<Boolean, Consumer<ProcessContext<NotificationModel>>> actionMap = new ImmutableMap.Builder<Boolean, Consumer<ProcessContext<NotificationModel>>>()
.put(Boolean.FALSE, resourceIdAction)
.put(Boolean.TRUE, emptyResourceIdAction)
.build();
标签:Map,FALSE,map,ImmutableMap,Boolean,put
From: https://www.cnblogs.com/PythonOrg/p/17043595.html