org.gnu.jcifs.util
Interface Comparator

All Known Implementing Classes:
FileInfoComparator, SessionComparator, ShareInfoComparator, StringComparator

public interface Comparator


Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compare to another comparable object.
 

Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compare to another comparable object. If return value is negative, then we're less than object. If return value is zero, then we're equal to object. If return value is positive, then we're greater than object. Feel free to throw a RunTimeException of some sort if object is not of the same class.