keyedcursoruos.java
来自「国外的数据结构与算法分析用书」· Java 代码 · 共 31 行
JAVA
31 行
/* KeyedCursorUos.java
* ---------------------------------------------
* Copyright (c) 2001 University of Saskatchewan
* All Rights Reserved
* --------------------------------------------- */
package dslib.base;
import dslib.exception.NoCurrentItemUosException;
/** A Cursor with a key. Item refers to the current item, itemKey
is the key of the current item, and itemExists determines if
the cursor is presently referring to an item in the structure. */
public interface KeyedCursorUos extends CursorUos
{
/** The key of the current item. <br>
PRECONDITION: <br>
<ul>
itemExists()
</ul> */
public Comparable itemKey() throws NoCurrentItemUosException;
/** The current key-item pair. <br>
PRECONDITION: <br>
<ul>
itemExists()
</ul> */
public PairUos keyItemPair() throws NoCurrentItemUosException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?