jclass
Interface Comparable


public abstract interface Comparable

Interface for a class able to compare its instances.

Written: Radu Sion
Version: 0.11
Source: Comparable.java

Visit Smart Software 


Method Summary
 int compareTo(java.lang.Object o)
          Should represent some sort of comparison between the current instance and the provided object.
 

Method Detail

compareTo

public int compareTo(java.lang.Object o)
Should represent some sort of comparison between the current instance and the provided object. [DETAILS LATER] It seems that jdk1.2 will have this, we'll wait for them ;)
Parameters:
o - Object to compare to ...
Returns:
0 if equal, pozitive if this "greater" than o, negative if o "greater" than this