totalcross.util
Interface Comparable

All Known Implementing Classes:
BigDecimal, BigInteger, Date, Node, PathEntry

public interface Comparable

Comparable interface that must be implemented by Objects that can be compared to another one.

See Also:
Convert.qsort(totalcross.lang.Object[], int, int), Convert.qsort(totalcross.lang.Object[], int, int, int), Convert.qsort(totalcross.lang.Object[], int, int, int, boolean)

Method Summary
 int compareTo(Object other)
          Must return > 0 if this object is greater than the other one, < 0 if its smaller, and 0 if they are equal.
 

Method Detail

compareTo

int compareTo(Object other)
              throws totalcross.lang.ClassCastException
Must return > 0 if this object is greater than the other one, < 0 if its smaller, and 0 if they are equal.

Throws:
totalcross.lang.ClassCastException