integercomparator.java

来自「有关编译器的编译器.」· Java 代码 · 共 25 行

JAVA
25
字号
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This file is part of SableCC.                             * * See the file "LICENSE" for copyright information and the  * * terms and conditions for copying, distribution and        * * modification of SableCC.                                  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */package org.sablecc.sablecc;import java.util.*;public class IntegerComparator implements Comparator{  public final static IntegerComparator instance = new IntegerComparator();  private IntegerComparator()  {}  public int compare(Object o1, Object o2)  {    return ((Integer) o1).intValue() - ((Integer) o2).intValue();  }}

⌨️ 快捷键说明

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