irc.tree
Interface Comparator


public interface Comparator

The comparator interface.


Method Summary
 int compare(java.lang.Object a, java.lang.Object b)
          Compare two objects.
 

Method Detail

compare

public int compare(java.lang.Object a,
                   java.lang.Object b)
Compare two objects.

Parameters:
a - first object.
b - second object.
Returns:
negative if a lesser than b, positive if a greater than b, and zero if a equals b.