This Package  Previous  Next  Index

Interface CoffeeTable.Grid.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:
1.2.10 of September 15, 1999 Copyright © 1996-1999 3magic

Method Index

 o compareTo(Object)
Compares two Objects.

Methods

 o compareTo
 public abstract int compareTo(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.

This Package  Previous  Next  Index