首页 > 其他分享 >ImmutableMap

ImmutableMap

时间:2023-01-11 14:36:45浏览次数:34  
标签:Map FALSE map ImmutableMap Boolean put

创建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

相关文章