com.plumtree.openfoundation.util
Interface IXPComparable

All Superinterfaces:
java.lang.Comparable
All Known Implementing Classes:
XPDateTime

public interface IXPComparable
extends java.lang.Comparable

This interface imposes a total ordering on the objects of each class that implements it. This ordering is referred to as the class's natural ordering, and the class's compareTo method is referred to as its natural comparison method.


Method Summary
 int CompareTo(java.lang.Object obj)
          Compares this object with Object passed to it and returns a value indicating whether one is less than, equal to or greater than the other.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

CompareTo

public int CompareTo(java.lang.Object obj)
Compares this object with Object passed to it and returns a value indicating whether one is less than, equal to or greater than the other.

Parameters:
obj - object to compare
Returns:
a negative integer, zero, or a positive integer as the first object is less than, equal to, or greater than the second.


Copyright 2002, 2003, 2004 Plumtree Software Inc. All Rights Reserved.