Each value retrieved via the enumerator should correspond with one row of the resultset.
通过枚举器检索的每个值都应与结果集的一行对应。
Sorting with a comparator is one option when working with an enumerator, searching with a filter is the other.
使用比较器进行排序是使用枚举器时的一种选择,另外一种选择是使用过滤器进行搜索。
The enumerator will create a result set of records from the record store, using the comparator as the sorting algorithm.
这个枚举器将使用比较器作为排序算法,从记录存储创建一个记录结果集。
Like the RecordComparator, the RecordFilter is implemented by the addition of a single method, matches , to the enumerator code.
与RecordComparator类似,RecordFilter也是通过在枚举器代码中增加一个方法matches实现的。
If you combine all three — the enumerator, comparator, and filter — you can search for specific records and return them in sorted order.
如果将这三者——枚举器、比较器和过滤器——结合在一起,您将可以查找特定的记录,并按顺序返回结果。
Gets an enumerator for the processes that are being debugged.
获取正在调试的进程的枚举数。
This determines the formats that the resulting enumerator can enumerate.
这将确定生成的枚举数可以枚举的格式。
Returns an enumerator that iterates through the text elements of a string.
返回一个循环访问字符串的文本元素的枚举器。
Removing objects from the enumerator also removes them from the collection.
从枚举数中移除对象也会将这些对象从集合中移除。
When an enumerator is created, it takes a snapshot of the current state of the collection.
在创建枚举数后,该枚举数会创建集合当前状态的快照。
In this case you must obtain a new enumerator object because the previous one is invalidated.
这时您必须获取一个新的枚举数对象,因为以前的已无效。
Gets the number of elements in the enumeration that was retrieved by the specified enumerator.
获取由指定枚举数检索的枚举中的元素数。
Replaces the controlled sequence with the sequence that is designated by the given enumerator.
用给定枚举器指定的序列替换受控序列。
The enumerator is positioned before the first element of the collection or after the last element.
枚举数位于集合的第一个元素之前或最后一个元素之后。
This method instantiates an enumerator that takes a snapshot of the current state of the collection.
此方法实例化一个枚举数,该枚举数采用集合当前状态的快照。
Returns an enumerator that can be used to read all the session-state variable names in the current session.
返回一个枚举数,可用来读取当前会话中所有会话状态的变量名称。
Provides an enumerator to access the security policy hierarchy by levels, such as computer policy and user policy.
提供枚举器以按级别(如计算机策略和用户策略)访问安全策略层次结构。
Creates an enumerator of all the connection points supported in the connectable object, one connection point per IID.
创建在可连接对象中支持的所有连接点的枚举数,每个IID一个连接点。
Advances the cursor of this enumerator from its current position so that the specified number of elements are skipped.
将此枚举数的游标从其当前位置提前,以便跳过指定数量的元素。
DURING THE 1960 census, an enumerator introduced herself to an elderly woman in Bluefield, W. Va, who was leaning on a hoe.
在1960年人口普查期间,一位人口普查员对西弗吉尼亚州布卢菲尔德的一位拄着锄头的年长的妇女做了自我介绍。
Even when a collection is synchronized, other threads can still modify the collection, which causes the enumerator to throw an exception.
即使集合已同步,其他线程仍可以修改集合,从而使枚举数引发异常。
Even when a collection is synchronized, other threads could still modify the collection, which causes the enumerator to throw an exception.
甚至在对集合进行同步处理时,其他线程仍可以修改该集合,这会导致枚举数引发异常。
The string is saved in a private variable so we have access to the string when the enumerator calls the matches() method to create the result set.
这个字符串被保存在私有变量中,这样当枚举器调用matches()方法创建结果集的时候就可以访问这个字符串。
The enumerator does not have exclusive access to the collection, so multiple enumerators can have access to the same collection at the same time.
该枚举数不具有对集合的独占访问权,因此多个枚举数可以同时具有对同一集合的访问权。
The enumerator does not have exclusive access to the collection; therefore, enumerating through a collection is intrinsically not a thread safe procedure.
该枚举数不具有独占访问集合的权限;因此,枚举整个集合本质上不是一个线程安全的过程。
The enumerator will iterate over all of the records (or only a subset, if an optional record filter has been supplied) in an order determined by a record comparator.
枚举器将以记录比较器确定的顺序迭代所有记录(或者如果提供了一个可选的记录过滤器,那么只是一个子集)。
One of the primary benefits of incorporating a record enumerator into your code is that it includes options for searching the record store, and for retrieving records in sorted order.
在代码中加入一个记录枚举器的一个最大好处在于枚举器中包含搜索记录存储以及以排序的顺序提取记录的选项。
One of the primary benefits of incorporating a record enumerator into your code is that it includes options for searching the record store, and for retrieving records in sorted order.
在代码中加入一个记录枚举器的一个最大好处在于枚举器中包含搜索记录存储以及以排序的顺序提取记录的选项。
应用推荐