This method of the StringComparison Class compares the two objects.
public int compare(Object p, Object q);
Returns the result of the comparison.
p | The first operand of the comparison. |
q | The second operand of the comparison. |
If both objects are instances of the String class, String.compareTo is called. If neither object is a String object, zero is returned. If one of the objects is a String, it is treated as lexicographically preceding the non-String object. This method must be addressed as ascend.compare or decend.compare.