java字典类 您所在的位置:网站首页 怎么创建一个字典文件夹 java字典类

java字典类

2023-08-23 10:43| 来源: 网络整理| 查看: 265

java字典类

Java Dictionary is an abstract class. It was the parent class for any key-value mapping objects, such as Hashtable. However, it got deprecated in favor of the Map interface introduced in Java 1.2, which later on streamlined the Collections Framework. Dictionary doesn’t allow null for key and value.

Java词典是一个抽象类 。 它是任何键值映射对象(例如Hashtable)的父类。 但是,不赞成使用Java 1.2中引入的Map接口,该接口后来简化了Collections Framework 。 字典不允许键和值为null。

Note: Dictionary class has been obsolete and you shouldn’t use it. I use dictionary a lot in Python and got curious if there is a Dictionary class in Java? That’s how I got to know about the Dictionary class. The information provided here is just to have some idea about it if you are curious, try to avoid using it in your application.

注意 :Dictionary类已经过时了,您不应使用它。 我在Python中经常使用字典,并且对Java中是否有Dictionary类感到好奇? 这就是我对Dictionary类的了解。 如果您感到好奇,这里提供的信息只是对它有所了解,请尝试避免在应用程序中使用它。

Java字典方法 (Java Dictionary Methods)

This class declares 7 methods, which the implementation classes had to implement.

此类声明7个方法,实现类必须实现。

int size


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有