JML

org.jmlspecs.models.resolve
Interface TotalCompareTo

All Superinterfaces:
CompareTo, ReflexiveCompareTo
All Known Subinterfaces:
StrictlyOrderedCompareTo, TotallyOrderedCompareTo, TotalPreorderedCompareTo, TrichotomousCompareTo
All Known Implementing Classes:
NaturalNumber

public interface TotalCompareTo
extends ReflexiveCompareTo

Objects whose compareTo operation is guaranteed not to throw an UndefinedException and only throws a ClassCastException when the class of the argument prohibits comparison.

Version:
$Revision: 1.10 $
Author:
Gary T. Leavens

Method Summary
 int compareTo(Object obj)
          Compare this to obj, returning negative if this is strictly less than obj, 0 if they are equal, and positive otherwise.
 

Method Detail

compareTo

public int compareTo(Object obj)
                       throws ClassCastException,
                              NullPointerException
Description copied from interface: CompareTo
Compare this to obj, returning negative if this is strictly less than obj, 0 if they are equal, and positive otherwise.

Specified by:
compareTo in interface CompareTo
Throws:
ClassCastException
NullPointerException

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.