comparable.java

来自「ALGAE是一个快速创建算法演示的框架。目前支持的算法实现语言包括java和c」· Java 代码 · 共 27 行

JAVA
27
字号
package /*{*/edu.odu.cs.zeil.AlgAE.Demos.Sort./*}*/Supporting;/*{*/import edu.odu.cs.zeil.AlgAE.Server.Visible;/** * Protocol for Comparable objects. * @author Mark Allen Weiss */public interface Comparable /*{*/extends Visible{    /**     * Compare this object with rhs.     * @param Rhs the second Comparable.     * @return 0 if two objects are equal;     *     less than zero if this object is smaller;     *     greater than zero if this object is larger.     */    int     compares( Comparable rhs );    /**     * Compare this object with rhs.     * @param Rhs the second Comparable.     * @return true if this object is smaller;     *     false otherwise.     */    boolean lessThan( Comparable rhs );}

⌨️ 快捷键说明

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