org.semanticweb.utilities
Interface Comparator

All Known Implementing Classes:
DoubleComparator

public interface Comparator

Description of the Interface

Author:
Administrator

Method Summary
 int compare(java.lang.Object fst, java.lang.Object snd)
          Compare two Objects with respect to ordering.
 

Method Detail

compare

public int compare(java.lang.Object fst,
                   java.lang.Object snd)
Compare two Objects with respect to ordering. Typical implementations first cast their arguments to particular types in order to perform comparison

Parameters:
fst - first argument
snd - second argument
Returns:
a negative number if fst is less than snd; a positive number if fst is greater than snd; else 0