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

📄 comparable.java

📁 一个用Java实现的小型
💻 JAVA
字号:
/** * The <I>Comparable</I> interface allows to objects to be compared against each other. * This is useful when implementing sorting algorithms such as QuickSort. * @author Eric M. White, Information Systems Experts, Inc. */public interface Comparable {  /**   * @param comp The object to compare to this one.   * @param type The type of comparison to make    *       (for example, multiple types can correspond to different fields).   * @return Greater than 0 if object > this, 0 if object = this,    *        less than 0 if object < this   */  public int compareTo(Comparable comp, String type) throws Exception;}

⌨️ 快捷键说明

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