KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > lsmp > djep > groupJep > interfaces > OrderedSetI


1 /* @author rich
2  * Created on 06-Mar-2004
3  *
4  * This code is covered by a Creative Commons
5  * Attribution, Non Commercial, Share Alike license
6  * <a HREF="http://creativecommons.org/licenses/by-nc-sa/1.0">License</a>
7  */

8 package org.lsmp.djep.groupJep.interfaces;
9
10 /**
11  * Groups which have a total ordering, i.e <, >= make sense.
12  * @see java.lang.Comparable
13  * @author Rich Morris
14  * Created on 06-Mar-2004
15  */

16 public interface OrderedSetI {
17     /** Returns -1,0,1 depending on whether a is less than, equal to or greater than b. */
18     public int compare(Number JavaDoc a,Number JavaDoc b);
19 }
20
Popular Tags