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

📄 simpletreeuos.java

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

package dslib.tree;

import dslib.exception.*;
import dslib.base.ContainerUos;

/**	A Container interface that stores items in a binary tree.  It has methods 
	to access the item at the root, or either subtree.  It also has a method 
	to test for empty, and wipeOut to remove all items. */
public interface SimpleTreeUos extends ContainerUos
{
	/**	Contents of the root item. <br>
		PRECONDITION: <br>
		<ul>
			!isEmpty() 
		</ul> */
	public Object rootItem() throws ContainerEmptyUosException;
 
	/**	Right subtree of the root. <br>
		PRECONDITION: <br>
		<ul>
			!isEmpty() 
		</ul> */
	public SimpleTreeUos rootRightSubtree() throws ContainerEmptyUosException;
 
	/**	Left subtree of the root. <br>
		PRECONDITION: <br>
		<ul>
			!isEmpty() 
		</ul> */
	public SimpleTreeUos rootLeftSubtree() throws ContainerEmptyUosException;
}

⌨️ 快捷键说明

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