Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Interface uk.co.ist.mwt.Comparable


public abstract interface Comparable
A Comparable object knows how to compare itself to other objects of its own type.


Method Summary
int compare(Comparable c)
          Compares this object with another Comparable object of the type of this one.
 

Method Detail

compare

public int compare(Comparable c)
Compares this object with another Comparable object of the type of this one.
Parameters:
c - an object to compare to this one
Returns:
a -ve value if this object is less than /c/, a +ve one if it is greater than /c/, and 0 if they are the same. If /c/ is a Comparable not of the same type as this one, return a non-zero value (sign undefined).

Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD