MCPcopy Create free account
hub / github.com/davidgiven/luje / compare

Method compare

lib/java/lang/String.java:118–120  ·  view source on GitHub ↗

Compare the two objects to determine the relative ordering. @param o1 an Object to compare @param o2 an Object to compare @return an int < 0 if object1 is less than object2, 0 if they are equal, and > 0 if object1 is greater @exception ClassCastException

(String o1, String o2)

Source from the content-addressed store, hash-verified

116 * if objects are not the correct type
117 */
118 public int compare(String o1, String o2) {
119 return o1.compareToIgnoreCase(o2);
120 }
121 }
122
123 /**

Callers

nothing calls this directly

Calls 1

compareToIgnoreCaseMethod · 0.80

Tested by

no test coverage detected