net.spy.util
Interface SpyComparable

All Known Implementing Classes:
SpyDateComparable, SpyDoubleComparable, SpyIntegerComparable

public interface SpyComparable

SpyComparible allows a class to describe how two objects should be compared. One of these must be implemented for each type of object we'll be sorting.


Method Summary
 int compare(Object obj1, Object obj2)
          Compare two objects.
 

Method Detail

compare

public int compare(Object obj1,
                   Object obj2)
Compare two objects.