Comparable Interface Diagram

 

 

 

 

 

 

 

 


Comparable Interface Specification

            Query Method

public int compareTo( Object z )

      post (expected):       

(this < z  implies  result < 0)

and  (this == z  implies  result == 0)

and  (this > z  implies  result > 0)

note:     This method must be supplied by the implementing class.