MCPcopy Create free account
hub / github.com/GateNLP/gate-core / valEquals

Method valEquals

src/main/java/gate/util/RBTreeMap.java:1078–1080  ·  view source on GitHub ↗

Test two values for equality. Differs from o1.equals(o2) only in that it copes with with null o1 properly.

(Object o1, Object o2)

Source from the content-addressed store, hash-verified

1076 * that it copes with with <tt>null</tt> o1 properly.
1077 */
1078 private static boolean valEquals(Object o1, Object o2) {
1079 return (o1==null ? o2==null : o1.equals(o2));
1080 }
1081
1082 private static final boolean RED = false;
1083

Callers 5

containsMethod · 0.95
removeMethod · 0.95
containsMethod · 0.80
removeMethod · 0.80
equalsMethod · 0.80

Calls 1

equalsMethod · 0.65

Tested by

no test coverage detected