例如,假设您有一个类,它用两个单独的散列表来存储用户信息和服务信息,如清单3所示。
For example, suppose that you have a class that stores user information and service information in two separate hash tables, as shown in Listing 3.
对于这个示例来说,这个存储器是由一个简单且短暂的散列表实现的,并由一个生成实现类的工厂提供(清单3和清单4)。
For this example, this store is implemented with a simple, ephemeral hash table and is provided with a factory for generating the implementation class (Listings 3 and 4).
请特别注意清单中的以下代码行:(1):urlarguments类是一个小型实用工具类,它将URL参数解析为散列表对象。
Pay particular attention to these lines in this listing: (1) : the UrlArguments class is a small utility class that parses the URL arguments into a hashtable object.
应用推荐