⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lastlistuos.java

📁 国外的数据结构与算法分析用书
💻 JAVA
字号:
/* LastListUos.java
 * ---------------------------------------------
 * Copyright (c) 2001 University of Saskatchewan
 * All Rights Reserved
 * --------------------------------------------- */
 
package dslib.list;

import dslib.exception.*;

/**	A descendant of interface BasicListUos with added methods to insert at the end and 
	set the last item. */
public interface LastListUos extends BasicListUos
{
	/**	The last item of the list. <br>
		PRECONDITION: <br>
		<ul>
			!isEmpty() 
		</ul> */
	public Object lastItem() throws ContainerEmptyUosException;

	/**	Set the last item of the list to x. <br>
		PRECONDITION: <br>
		<ul>
			!isEmpty()
		</ul>
		@param x item to replace the last item */
	public void setLastItem(Object x) throws ContainerEmptyUosException;

	/**	Insert x as the last item in the list. 
		@param x item to be inserted at the end of the list */
	public void insertLast(Object x);

}

⌨️ 快捷键说明

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