edu.ucsb.adl.middleware
Interface Comparable


public interface Comparable

An object which supports a total ordering with like objects.

Version:
$Header: /export/home/gjanee/middleware/edu/ucsb/adl/middleware/RCS/Comparable.java,v 1.1 2000/02/16 23:48:54 gjanee Exp $

$Log: Comparable.java,v $ Revision 1.1 2000/02/16 23:48:54 gjanee Initial revision

Author:
Greg Janée
Alexandria Digital Library

Method Summary
 int compareTo(edu.ucsb.adl.middleware.Comparable other)
          Returns the order relationship between this object and another (like) object.
 

Method Detail

compareTo

public int compareTo(edu.ucsb.adl.middleware.Comparable other)
Returns the order relationship between this object and another (like) object.

Parameters:
other - The other object.
Returns:
A negative value if this object precedes other; zero if this object is equivalent to other as far as the ordering is concerned; or a positive value if other precedes this object.
Throws:
java.lang.ClassCastException - If other is not a like object.