集合类unmodifiableMap()方法 (Collections Class unmodifiableMap() method)
unmodifiableMap() method is available in java.util package.
unmodifiableMap()方法在java.util包中可用。
unmodifiableMap() method is used to get a non-modifiable view of the given Map (map).
unmodifiableMap()方法用于获取给定Map(地图)的不可修改视图。
unmodifiableMap() method is a static method, it is accessible with the class name and if we try to access the method with the class object then also we will not get any error.
unmodifiableMap()方法是一个静态方法,可以使用类名进行访问,如果尝试使用类对象访问该方法,那么也不会出现任何错误。
unmodifiableMap() method does not throw an exception at the time of returning unmodifiable view of the
最后
以上就是孤独小甜瓜最近收集整理的关于Java集合unmodifiableMap()方法及示例的全部内容,更多相关Java集合unmodifiableMap()方法及示例内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复