CoffeeTable.Grid
Interface Comparable


public interface Comparable

The Comparable interface to provide a compareTo method for Objects stored in the GridData. When GridData sorts, it will check if the data Object has implemented the Comparable interface, and then call it's compareTo method.

Version:
2.1.3 of October 1, 1999 Copyright © 1996-1999 3Magic

Method Summary
 int compareTo(java.lang.Object anotherObject)
          Compares two Objects.
 

Method Detail

compareTo

public int compareTo(java.lang.Object anotherObject)
Compares two Objects. This method should compare the Object with the passed in Object and return a value less than 0 if this Object is less than the argument, 0 if they are equal, and a value greater than 0 if the Object is greater than the argument.
Parameters:
anotherObject - the Object to be compared
Returns:
the value 0 if the argument Object is equal to this Object; a value less than 0 if this Object is less than the Object argument; and a value greater than 0 if this Object is greater than the Object argument.