Notice that attrs is a HashMap of the tag attributes.
请注意:attrs是标记属性的HashMap。
The first line gets a HashMap from the geocoder service.
第一行从geocoder服务获得一个HashMap。
This HashMap is returned to the service implementation method.
此HashMap将返回到服务实现方法。
In this implementation, the list is stored in a static HashMap.
在这个实现中,列表存储在一个静态hashmap中。
This sample application leaks string objects into a static HashMap.
这一示例应用程序将字符串对象泄漏到一个静态hashmap中。
The disk forms of Hashtable and HashMap are different and incompatible.
Hashtable和HashMap在磁盘上的格式是不相同、不兼容的。
It then calls an API method of the application supplying this HashMap as input.
然后将调用应用程序的API方法,并提供此HashMap作为输入。
Scala USES the term type annotations for explicit type declarations like HashMap.
Scala使用类型注解作为显式类型声明的方式,比如HashMap。
This hash code could be used as a key into a HashMap or for any other related purpose.
这个哈希码可以用作HashMap或者其他相关目的的键。
The two retrieval methods simply retrieve the value from the HashMap (Figure 14 and 15).
这两个检索方法只检索hashmap中的值(图14和图15)。
Nothing, if we never used an Integer as a key in a HashMap or other hash-based collection.
如果我们从未在HashMap或其它基于散列的集合中使用Integer作为关键字的话,什么也不会发生。
Xpand was then used to parse and translate the grammar into a HashMap-based data structure.
接下来,使用Xpand解析语法并将其转换为基于HashMap的数据结构。
The first obstacle they faced in clustering RIFE was to make access to this HashMap thread safe.
群集rife的第一个障碍是线程安全地访问这个HashMap。
In the BOM-to-XOM mapping, this method creates a HashMap and puts the parameters into the HashMap.
在BOM - to - XOM映射,该方法创建一个HashMap,并将参数输入HashMap。
So, where does this hashmap get used? Take a look at grails-app/views/list.gsp, shown in Listing 4
那么,如何使用这个hashmap?
This, along with Integer being immutable, makes it practical to use an Integer as a key in a HashMap.
结合将不可修改的Integer,这使得使用Integer作为hashmap中的关键字是切实可行的。
The main difference is that a HashMap is instantiated that associates a String value to a String key.
主要差别是,实例化了一个HashMap,用于将一个string值与一个string键相关联。
For this scenario, a fact BOM class is created which instantiates a HashMap when the fact is asserted.
在这个场景中,在断言事实时,Fact对象是由一个实例化的HashMap创建的。
The program creates the HashMap for the stats document, as well as UserList documents for each service.
这个程序为统计文档创建HashMap,并且为每个服务创建UserList文档。
Notice that I just mock up some flight data in a HashMap rather than setting up the full MVC infrastructure.
注意我仅仅模仿了HashMap中的一些机载数据,而不是设置完整的MVC基础设施。
ContactStore: It's a HashMap-based in-memory data store whose implementation is not important for this article.
ContactStore:这是基于HashMap的内存数据存储库,其实现对于本文不重要。
The last part of the method parses the Xml result using a Groovy XmlSlurper and stores the results in a hashmap.
方法的最后部分使用Groovyxmlslurper解析xml结果并将结果存储在hashmap里。
Clearly, this approach is a pain but the solution is easy: Never use a mutable object type as a key in a HashMap.
很显然,这种方法很糟糕,但是解决方法也很简单:永远不要将可变对象类型用作hashmap中的键。
Once I showed them how to do automatic serialization replacement, the transition to HashMap proceeded as planned.
当我向他们展示如何自动进行序列化替换后,他们终于按计划完成了向HashMap的转变。
It shows how the data structure USES collections (like HashMap or Vector) to structure the elements of the data structure.
它显示了数据结构如何利用集合(如hashmap或Vector)来设定数据结构的元素的结构。
The getOrder method takes the order ID as a parameter, gets the corresponding order from the HashMap, and returns the same.
getOrder方法接受订单ID作为参数,从HashMap 获得对应的订单并返回订单。
This is usually not a problem in practice — it is not common practice to use a mutable object like a List as a key in a HashMap.
实践过程中这通常不是问题——我们并不经常使用象List这样的可修改对象做为hashmap中的关键字。
So, for example, it was cheaper to invoke methods on a HashMap map than a map map, even though in both cases the map was a HashMap.
比如在HashMapmap上调用方法要比在map map上调用方法更高效,虽然两个map都是HashMap。
The simple tests used here suggest that an uncontended synchronization is cheaper than the cost of an object creation or a HashMap lookup.
这里使用的简单测试是说明一个无争用同步的代价要比创建一个对象或查找一个HashMap的代价小。
In this case, TripController redirects you to the list action, passing along all of the parameters (or QueryString) in the params hashmap.
在此,TripController重定向到list动作,同时传递paramshashmap中的所有的参数(或QueryString)。
应用推荐