This method of the Comparison Interface compares two Objects.
public int compare(Object p, Object q);
Returns less than 0 if p is less than or comes before q, 0 if p equals q, or greater than 0 if p is greater than or comes after q.
p | The Object to compare with q. |
q | The Object to compare with p. |