weiss.util
Interface Comparator<AnyType>

All Superinterfaces:
java.io.Serializable

public interface Comparator<AnyType>
extends java.io.Serializable

Comparator function object interface.


Method Summary
 int compare(AnyType lhs, AnyType rhs)
          Return the result of comparing lhs and rhs.
 

Method Detail

compare

int compare(AnyType lhs,
            AnyType rhs)
Return the result of comparing lhs and rhs.

Parameters:
lhs - first object.
rhs - second object.
Returns:
< 0 if lhs is less than rhs, 0 if lhs is equal to rhs, > 0 if lhs is greater than rhs.