keyeduos.java
来自「国外的数据结构与算法分析用书」· Java 代码 · 共 20 行
JAVA
20 行
/* KeyedUos.java
* ---------------------------------------------
* Copyright (c) 2001 University of Saskatchewan
* All Rights Reserved
* --------------------------------------------- */
package dslib.base;
/** A class which includes a key function and a setKey procedure
to change the key */
public interface KeyedUos
{
/** Key of the item */
public Comparable key();
/** Set the key to be newKey.
@param newKey the new key value for the current item */
public void setKey(Comparable newKey);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?