Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种创建类似于 Collections.singletonMap 的单例枚举映射的方法,该方法用于创建单例映射。 我要创建的 enumMap 将只包含一个元素。