null, a 0 value is returned. If one object is null and the other is not, the result is determined on whether the Comparator was constructed to have nulls as higher or lower than other objects. If neither object is null, an underlying comparator specified in the constructor (or the default) is used to compare the non-null objects.
@param o1 the first object to compare
@param o2 the object to compare it to.
@return -1 if o1 is "lower" than (less than,before, etc.) o2; 1 if o1 is "higher" than (greater than, after, etc.) o2; or 0 if o1 and o2 are equal.
| |
| |
| |
| |
| |
| |
| |
| |