An interface implemented by objects with custom comparison logic. Used in conjunction with BY_COMPARE_TO.
Compares this to other. Returns < 0 if this < other, > 0 if this > other and 0 if this == other.
this
other
< 0
this < other
> 0
this > other
0
this == other
An interface implemented by objects with custom comparison logic. Used in conjunction with BY_COMPARE_TO.