iteratorindex.java

来自「高效海量访问系统」· Java 代码 · 共 18 行

JAVA
18
字号
package com.sleepycat.collections;

public class IteratorIndex {
  public IteratorIndex() {
  }
  /**
   * 将Iterator指针移到指定位置
   * 由于StoredIterator的moveToIndex()方法是protected属性,因此设计了IteratorIndex类
   * 以便在com.sleepycat.collections包外调用该方法
   * @param iterator StoredIterator
   * @param index int
   * @throws Exception
   */
  public static void moveToIndex(StoredIterator iterator, int index) {
      iterator.moveToIndex(index);
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?