Jumpi v1.2.0

org.jumpi.impl.util
Interface Comparable

All Known Implementing Classes:
TcpConnection

public interface Comparable

Semantically identical to java.util.Comparable but needed because MIDP does not support this interface.

See Also:
Heap

Method Summary
 int compareTo(java.lang.Object obj)
          Compares this object with the specified object for order.
 

Method Detail

compareTo

public int compareTo(java.lang.Object obj)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Parameters:
obj - the other instance to compare to this instance.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
java.lang.ClassCastException - if the specified object's type prevents it from being compared to this Object.

Jumpi v1.2.0

Copyright © 2003, Peter Jonathan Klauser.