You can solve this problem by using String.intern or maintaining a user hash set or hash map.
您可以通过使用String .intern或维护一个用户散列集合或散列映射来解决这个问题。
Hash entries are, similarly to arrays, easy to set but difficult to remove.
散列项类似于数组,易于设置但难以除去。
For example, if you manage data in hash tables or other unordered data structures in the application domain, you might face additional work re-assembling elements into the order set by a schema.
比方说,如果在应用领域采用哈希表或者其他无序数据结构管理数据,可能会面临着将元素按照模式中的顺序设定重新装配的额外工作。
Here, I set a variable called g_books to an array that contains three hash tables, where each hash table contains information about the book.
这里,我将名为g_books的变量设置为一个包含三个散列表的数组,每个散列表包含关于该书的信息。
For example, the attributes of an XML node would naturally be represented in Perl as a hash, since they are a set of unique name-value pairs.
例如,在Perl中,把xml节点的属性自然地表示成一个散列,因为它们是一组唯一的名称-值对。
Each attribute in the hash can be accessed or set using the dot operator (as shown in Listing 2).
使用dot操作符可以访问或设置hash中的每个属性(参见清单2)。
Next, you set up global variables for the command to be executed, a buffer for response messages, and a hash that will contain the fields from the trigger message (Listing 4).
下面,您为要执行的命令设置一些全局变量,为响应消息设置一个缓冲区,并设置一个哈希来包含来自触发器消息的字段(见清单4)。
The curly braces () indicate a hash table, which is a set of name and value pairs.
大括号()则表明这是一个散列表,该散列表由一组名称和值对组成。
While loading, it is possible to reorganize the data to better suit the algorithms -- for example, loading into a hash table or a database may help in working with a large data set.
加载的时候,可以重新组织数据,以便更好地适应算法。比如,加载到散列表或者数据库中可以帮助处理大型数据集。
This example will automatically set the WINNER and LOSER variables when the TIMES hash has more than one entry.
当TIMES散列有多个项时,该示例将自动设置WINNER和LOSER变量。
The client terminates the handshake by sending a message to the server that it has finished, an encrypted set of one-way hash values to be verified by the server.
客户机通过向服务器发送一个表明自己已经完成握手的消息,以及一组加密的单向hash值让服务器进行验证,从而结束握手的过程。
A hash is expressed as a set of attributes delimited by commas between curly braces.
hash被表示为使用逗号间隔的一组属性,并且使用大括号括起。
In the examples used so far, the shell prompt is set to the hash, or pound, symbol (#).
目前为止,示例中的shell提示都设置为正斜杠、英镑符号、或符号 #。
Memory data are stored in table set, and data index is set up by hash table.
采用表集的方式存储各类内存数据,通过哈希表建立数据索引。
I am trying to set up hash-based sharing, but it doesn't works.
我试图建立的基于散列的分片,但它不工作。
I am trying to set up hash-based sharing, but it doesn't works.
我试图建立的基于散列的分片,但它不工作。
应用推荐