?? stepcomparator.java
字號:
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. */package com.opensymphony.workflow.spi.ejb;import com.opensymphony.workflow.spi.Step;import java.util.Comparator;/** * Utility class to order steps in a descending order. * * @author <a href="mailto:plightbo@hotmail.com">Pat Lightbody</a> */public class StepComparator implements Comparator { //~ Methods //////////////////////////////////////////////////////////////// public int compare(Object o1, Object o2) { Step step1 = (Step) o1; Step step2 = (Step) o2; if (step1.getId() > step2.getId()) { return -1; } else if (step1.getId() < step2.getId()) { return 1; } else { return 0; } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -