duplicateitemsuosexception.java

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

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

package dslib.exception;

/**	This exception is used whenever two identical items are attempted to 
	be inserted into a set, where duplicates are not allowed. */
public class DuplicateItemsUosException extends ContainerUosException
{
	/**	Create an exception with the specified message. <br> 
		Analysis: Time = O(1) */
	public DuplicateItemsUosException(String message)
	{
		super(message);
	}
  
	/**	Create an exception with the default message. <br> 
		Analysis: Time = O(1) */
	public DuplicateItemsUosException()
	{
		super("DuplicateItemsUosException thrown!");
	}
} 

⌨️ 快捷键说明

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