cursoruos.java

来自「国外的数据结构与算法分析用书」· Java 代码 · 共 27 行

JAVA
27
字号
/* CursorUos.java
 * ---------------------------------------------
 * Copyright (c) 2001 University of Saskatchewan
 * All Rights Reserved
 * --------------------------------------------- */

package dslib.base;

import dslib.exception.*;
import java.io.Serializable;

/**	A cursor to keep track of the current item in a data structure. 
	It includes an itemExists routine to determine if the 
	cursor is presently referring to an item in the structure. */
public interface CursorUos extends Serializable, Cloneable
{
	/**	The current item. <br>
		PRECONDITION: <br>
		<ul>
			itemExists()
		</ul> */
	public Object item() throws NoIteratorItemUosException;
 
	/**	Is there a current item?. */
	public boolean itemExists();
} 

⌨️ 快捷键说明

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