KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > util > CompareInterface


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.util;
11
12 /**
13  * Interface for comparing objects so trhey can get sorted.
14  * Used by SortedVector.
15  * @see SortedVector
16  * @deprecated This is the same as java.util.Comparator
17  * @version $Id: CompareInterface.java,v 1.6 2004/09/29 14:29:23 pierre Exp $
18  */

19
20 public interface CompareInterface {
21     /**
22      * The compare function called by SortedVector to sort things
23      */

24     public abstract int compare(Object JavaDoc thisone,Object JavaDoc other);
25 }
26
Popular Tags